Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
cleptric committed Aug 15, 2024
1 parent 4889474 commit 35092b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ func TestGetTraceparent(t *testing.T) {
}
}

func TestGetBaggageHeader(t *testing.T) {
func TestGetBaggage(t *testing.T) {
tests := map[string]struct {
hub *Hub
expected string
Expand All @@ -457,7 +457,12 @@ func TestGetBaggageHeader(t *testing.T) {
dynamicSamplingContext: DynamicSamplingContext{
Entries: map[string]string{"sample_rate": "1", "release": "1.0.0", "environment": "production"},
},
recorder: &spanRecorder{},
ctx: context.Background(),
Sampled: SampledTrue,
}
s.span.spanRecorder().record(s.span)

return h
}(),
expected: "sentry-sample_rate=1,sentry-environment=production,sentry-release=1.0.0",
Expand Down

0 comments on commit 35092b3

Please sign in to comment.