Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sentry-ruby/lib/sentry/telemetry_event_buffer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def send_items
envelope = Envelope.new(
event_id: Sentry::Utils.uuid,
sent_at: Sentry.utc_now.iso8601,
dsn: @dsn,
dsn: @dsn.to_s,
sdk: Sentry.sdk_meta
)

Expand Down
2 changes: 1 addition & 1 deletion sentry-ruby/spec/sentry/metrics_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@

expect(headers[:event_id]).to match(/\A[0-9a-f]{32}\z/) # UUID format
expect(headers[:sent_at]).to match(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/) # ISO8601 timestamp
expect(headers[:dsn]).to eq(Sentry.configuration.dsn)
expect(headers[:dsn]).to eq(Sentry.configuration.dsn.to_s)
expect(headers[:sdk]).to eq(Sentry.sdk_meta)
end

Expand Down