Skip to content

Commit

Permalink
filter out AWS metadata fetches trace (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasdanz authored Aug 21, 2024
1 parent ba81531 commit 3c7a75c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/degica_datadog/tracing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ def init(rake_tasks: [])
path_group = DegicaDatadog::Util.path_group(span.get_tag("http.url"))
span.resource = "#{span.get_tag("http.method")} #{path_group}"
end
end,
# Remove AWS metadata fetches
Datadog::Tracing::Pipeline::SpanFilter.new do |span|
%w[/metadata/instance/compute /latest/api/token].include?(span.get_tag("http.url"))
end
)
end
Expand Down

0 comments on commit 3c7a75c

Please sign in to comment.