Upgrade versions of vendored libs
This commit is contained in:
12
vendor/github.com/getsentry/sentry-go/dynamic_sampling_context.go
generated
vendored
12
vendor/github.com/getsentry/sentry-go/dynamic_sampling_context.go
generated
vendored
@@ -52,8 +52,6 @@ func DynamicSamplingContextFromTransaction(span *Span) DynamicSamplingContext {
|
||||
}
|
||||
}
|
||||
|
||||
options := client.Options()
|
||||
|
||||
if traceID := span.TraceID.String(); traceID != "" {
|
||||
entries["trace_id"] = traceID
|
||||
}
|
||||
@@ -66,10 +64,10 @@ func DynamicSamplingContextFromTransaction(span *Span) DynamicSamplingContext {
|
||||
entries["public_key"] = publicKey
|
||||
}
|
||||
}
|
||||
if release := options.Release; release != "" {
|
||||
if release := client.options.Release; release != "" {
|
||||
entries["release"] = release
|
||||
}
|
||||
if environment := options.Environment; environment != "" {
|
||||
if environment := client.options.Environment; environment != "" {
|
||||
entries["environment"] = environment
|
||||
}
|
||||
|
||||
@@ -84,6 +82,12 @@ func DynamicSamplingContextFromTransaction(span *Span) DynamicSamplingContext {
|
||||
entries["user_segment"] = userSegment
|
||||
}
|
||||
|
||||
if span.Sampled.Bool() {
|
||||
entries["sampled"] = "true"
|
||||
} else {
|
||||
entries["sampled"] = "false"
|
||||
}
|
||||
|
||||
return DynamicSamplingContext{
|
||||
Entries: entries,
|
||||
Frozen: true,
|
||||
|
||||
Reference in New Issue
Block a user