Skip to content

Commit

Permalink
Merge branch 'anmarchenko/telemetry_metrics_support' of github.com:Da…
Browse files Browse the repository at this point in the history
…taDog/dd-trace-rb into anmarchenko/telemetry_metrics_support
  • Loading branch information
anmarchenko committed Jul 10, 2024
2 parents d31bf33 + 1f01634 commit 3c61007
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/datadog/core/telemetry/metrics_collection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ def first_distribution_values
expect(event).to be_a(Datadog::Core::Telemetry::Event::GenerateMetrics)
payload = event.payload

expect(payload[:namespace]).to eq(namespace)
expect(payload[:series]).to have(2).items
expect(payload.fetch(:namespace)).to eq(namespace)
expect(payload.fetch(:series)).to have(2).items

tags = payload[:series].map { |s| s[:tags] }.sort
expect(tags).to eq([['tag1:val1', 'tag2:val2'], ['tag1:val1', 'tag2:val3']])
Expand All @@ -274,8 +274,8 @@ def first_distribution_values
expect(event).to be_a(Datadog::Core::Telemetry::Event::Distributions)
payload = event.payload

expect(payload[:namespace]).to eq(namespace)
expect(payload[:series]).to have(2).items
expect(payload.fetch(:namespace)).to eq(namespace)
expect(payload.fetch(:series)).to have(2).items

tags = payload[:series].map { |s| s[:tags] }.sort
expect(tags).to eq([['tag1:val1', 'tag2:val2'], ['tag1:val1', 'tag2:val3']])
Expand Down

0 comments on commit 3c61007

Please sign in to comment.