Execute a function within an OpenTelemetry span. If @opentelemetry/api is not installed, executes the function directly (no-op).
Span name (e.g., 'adcp.mcp.call_tool')
Span attributes
Async function to execute within the span
The result of fn()
Execute a function within an OpenTelemetry span. If @opentelemetry/api is not installed, executes the function directly (no-op).