You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: instrumentation/opentelemetry-instrumentation-aiohttp-client/src/opentelemetry/instrumentation/aiohttp_client/__init__.py
+3-1
Original file line number
Diff line number
Diff line change
@@ -146,6 +146,7 @@ def create_trace_config(
146
146
request_hook: _RequestHookT=None,
147
147
response_hook: _ResponseHookT=None,
148
148
tracer_provider: TracerProvider=None,
149
+
span_name: typing.Optional[str] =None,
149
150
) ->aiohttp.TraceConfig:
150
151
"""Create an aiohttp-compatible trace configuration.
151
152
@@ -173,6 +174,7 @@ def create_trace_config(
173
174
:param Callable request_hook: Optional callback that can modify span name and request params.
174
175
:param Callable response_hook: Optional callback that can modify span name and response params.
175
176
:param tracer_provider: optional TracerProvider from which to get a Tracer
177
+
:param span_name: Optional custom span name
176
178
177
179
:return: An object suitable for use with :py:class:`aiohttp.ClientSession`.
0 commit comments