- Notifications
You must be signed in to change notification settings - Fork 814
Fix missing attributes in RedisCluster spans #2626
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
base: main
Are you sure you want to change the base?
Changes from 7 commits
65e2c64 8ff71aa 7802ade f3024bc 0c97cdf a0f908a 848cc51 5e71011 045c9c6 ac8cc13 f5c4bf4 File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| | @@ -128,6 +128,10 @@ def response_hook(span, instance, response): | |
| | ||
| | ||
| def _set_connection_attributes(span, conn): | ||
a-cid marked this conversation as resolved. Outdated Show resolved Hide resolved | ||
| if hasattr(conn, "nodes_manager") and hasattr( | ||
| conn.nodes_manager.default_node, "redis_connection" | ||
| ): | ||
| conn = conn.nodes_manager.default_node.redis_connection | ||
| ||
| if not span.is_recording() or not hasattr(conn, "connection_pool"): | ||
| return | ||
| for key, value in _extract_conn_attributes( | ||
| | ||
Uh oh!
There was an error while loading. Please reload this page.