diff options
author | 2023-05-12 14:55:18 +0200 | |
---|---|---|
committer | 2023-05-12 14:55:18 +0200 | |
commit | b47661f0330f9f6902e19a3bf6fb664dcfa85907 (patch) | |
tree | 831e75f76943094bcb2852ac29bc02ba511c70a0 /vendor/go.opentelemetry.io/otel/sdk/trace/span.go | |
parent | [chore] Update a bunch of database dependencies (#1772) (diff) | |
download | gotosocial-b47661f0330f9f6902e19a3bf6fb664dcfa85907.tar.xz |
[bugfix] Downstep otel to fix freebsd compile issue (#1773)
https://github.com/open-telemetry/opentelemetry-go/issues/4076
Diffstat (limited to 'vendor/go.opentelemetry.io/otel/sdk/trace/span.go')
-rw-r--r-- | vendor/go.opentelemetry.io/otel/sdk/trace/span.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/go.opentelemetry.io/otel/sdk/trace/span.go b/vendor/go.opentelemetry.io/otel/sdk/trace/span.go index 4fcca26e0..9fb483a99 100644 --- a/vendor/go.opentelemetry.io/otel/sdk/trace/span.go +++ b/vendor/go.opentelemetry.io/otel/sdk/trace/span.go @@ -302,7 +302,7 @@ func (s *recordingSpan) addOverCapAttrs(limit int, attrs []attribute.KeyValue) { // most a length of limit. Each string slice value is truncated in this fashion // (the slice length itself is unaffected). // -// No truncation is performed for a negative limit. +// No truncation is perfromed for a negative limit. func truncateAttr(limit int, attr attribute.KeyValue) attribute.KeyValue { if limit < 0 { return attr @@ -410,7 +410,7 @@ func (s *recordingSpan) End(options ...trace.SpanEndOption) { } s.mu.Unlock() - sps := s.tracer.provider.getSpanProcessors() + sps := s.tracer.provider.spanProcessors.Load().(spanProcessorStates) if len(sps) == 0 { return } |