Skip to content

Commit 3b9bf18

Browse files
committed
update test and snapshot
1 parent f75bf8c commit 3b9bf18

3 files changed

+36
-9
lines changed

tests/integration/test_integration_snapshots.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,9 @@ def test_setting_span_tags_and_metrics_generates_no_error_logs():
284284

285285
@pytest.mark.parametrize("encoding", ["v0.4", "v0.5"])
286286
@pytest.mark.snapshot()
287-
def test_encode_span_with_large_string_attributes():
287+
def test_encode_span_with_large_string_attributes(encoding):
288288
from ddtrace import tracer
289289

290-
with tracer.trace(name="a" * 25000, resource="b" * 25001) as span:
291-
span.set_tag(key="c" * 25001, value="d" * 2000)
290+
with override_global_config(dict(_trace_api=encoding)):
291+
with tracer.trace(name="a" * 25000, resource="b" * 25001) as span:
292+
span.set_tag(key="c" * 25001, value="d" * 2000)

0 commit comments

Comments
 (0)