-
Notifications
You must be signed in to change notification settings - Fork 678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aiohttp instrumentation: Function create_trace_config has no span_name argument. #848
Comments
Also looks weird that current solution starts span with name Lines 200 to 210 in d01efe5
It would be nice to add def create_trace_config(
...
span_name: Optional[str] = None,
) -> aiohttp.TraceConfig:
...
request_span_name = f"HTTP {http_method}" if span_name is None else span_name |
Proposed patch looks good to me. Happy to merge a PR if one is sent :) |
Param `span_name` already used in the docs! So let it works! ;) open-telemetry#848
@lzchen This isn't a callback and since it is documented, it looked like a mistake but you're right, we already support request/response hooks which solve this problem. May be we should just update the docs instead. |
Okay, I'll revert changes and update the docs. Should I remove |
Yes it doesn't seem like |
@lzchen, ready :) |
Docs usage example
Ref: https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/aiohttp_client/aiohttp_client.html#usage
Bug
Function
create_trace_config
has nospan_name
argument.The text was updated successfully, but these errors were encountered: