Wraps a function with OpenTelemetry tracing.
Automatically captures caller info and sets code.* attributes.
If the callback returns a Promise, the span ends after the promise resolves/rejects.
If the callback is synchronous, the span ends immediately after execution.
Wraps a function with OpenTelemetry tracing. Automatically captures caller info and sets code.* attributes.
If the callback returns a Promise, the span ends after the promise resolves/rejects. If the callback is synchronous, the span ends immediately after execution.