Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
quinna-h committed Oct 4, 2024
1 parent baf993a commit 78b7ffe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions ddtrace/contrib/internal/pymongo/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ def _datadog_trace_operation(operation, wrapped):
sample_rate = config.pymongo.get_analytics_sample_rate()
if sample_rate is not None:
span.set_tag(_ANALYTICS_SAMPLE_RATE_KEY, sample_rate)

return span


Expand All @@ -177,7 +176,6 @@ def _trace_server_send_message_with_response(func, args, kwargs):
operation = get_argument_value(args, kwargs, 1, "operation")

span = _datadog_trace_operation(operation, server_instance)

if span is None:
return func(*args, **kwargs)
with span:
Expand Down
4 changes: 2 additions & 2 deletions tests/contrib/pymongo/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def test_patch_unpatch(self):
def test_user_specified_service_default(self):
"""
v0 (default): When a user specifies a service for the app
The pymongo integration should use it.
The pymongo integration should not use it.
"""
# Ensure that the service name was configured
from ddtrace import config
Expand All @@ -529,7 +529,7 @@ def test_user_specified_service_default(self):
def test_user_specified_service_v0(self):
"""
v0: When a user specifies a service for the app
The pymongo integration should use it.
The pymongo integration should not use it.
"""
# Ensure that the service name was configured
from ddtrace import config
Expand Down

0 comments on commit 78b7ffe

Please sign in to comment.