MSP-8976 Up deps

This commit is contained in:
Иван Перлов committed 2026-11-19 12:30:18 +03:00
1 parent 7e82fe9086
commit 00b219bb92
603 files changed
+47715 -13202

No files matched your search

+4 -4
View File
@@ -43,7 +43,7 @@ func DynamicSamplingContextFromTransaction(span *Span) DynamicSamplingContext {
scope := hub.Scope()
client := hub.Client()
if client == nil || scope == nil {
if !client.IsEnabled() || scope == nil {
return DynamicSamplingContext{
Entries: map[string]string{},
Frozen: false,
@@ -53,7 +53,7 @@ func DynamicSamplingContextFromTransaction(span *Span) DynamicSamplingContext {
entries := make(map[string]string)
if traceID := span.TraceID.String(); traceID != "" {
entries["trace_id"] = traceID
entries[traceIDContextKey] = traceID
}
if sampleRate := span.sampleRate; sampleRate != 0 {
entries["sample_rate"] = strconv.FormatFloat(sampleRate, 'f', -1, 64)
@@ -122,7 +122,7 @@ func (d DynamicSamplingContext) String() string {
func DynamicSamplingContextFromScope(scope *Scope, client *Client) DynamicSamplingContext {
entries := map[string]string{}
if client == nil || scope == nil {
if !client.IsEnabled() || scope == nil {
return DynamicSamplingContext{
Entries: entries,
Frozen: false,
@@ -132,7 +132,7 @@ func DynamicSamplingContextFromScope(scope *Scope, client *Client) DynamicSampli
propagationContext := scope.propagationContext
if traceID := propagationContext.TraceID.String(); traceID != "" {
entries["trace_id"] = traceID
entries[traceIDContextKey] = traceID
}
if sampleRate := client.options.TracesSampleRate; sampleRate != 0 {
entries["sample_rate"] = strconv.FormatFloat(sampleRate, 'f', -1, 64)