Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
marcotc committed Jan 14, 2025
1 parent 91f8de3 commit 1d5510f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion .github/forced-tests-list.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"DEFAULT":
[
"tests/test_span_events.py::Test_SpanEvents_WithAgentSupport::setup_v04_v07_default_format"
"tests/test_span_events.py::Test_SpanEvents_WithAgentSupport::test_v04_v07_default_format"
],
"AGENT_NOT_SUPPORTING_SPAN_EVENTS":
[
Expand Down
3 changes: 0 additions & 3 deletions lib/datadog/tracing/transport/traces.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,11 @@ def change_api!(api_id)
# Queries the agent for native span events serialization support.
# This changes how the serialization of span events performed.
def native_events_supported?
# print"Already cached: #{@native_events_supported}" if defined?(@native_events_supported)
return @native_events_supported if defined?(@native_events_supported)

if (res = Datadog.send(:components).agent_info.fetch)
# print"Caching: #{res.span_events == true}"
@native_events_supported = res.span_events == true
else
# print"Failed to contact agent"
false
end
end
Expand Down

0 comments on commit 1d5510f

Please sign in to comment.