You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-08-13 19:53:11 +02:00
Add instrumentation scope attributes (#3131)
* Add WithScopeAttributes TracerOption to trace API * Add Attributes field to instrumentation Scope * Use scope attributes for new Tracer * Fix stdouttrace expected test output * Allow unexported Set fields in sdk/trace test * Export instrumentation scope attrs in OTLP * Add changes to the changelog * Fix imports with make lint * Add unit tests for WithScopeAttributes * Fix English in Scope documentation
This commit is contained in:
@@ -911,6 +911,8 @@ func TestSetSpanStatusWithoutMessageWhenStatusIsNotError(t *testing.T) {
|
||||
func cmpDiff(x, y interface{}) string {
|
||||
return cmp.Diff(x, y,
|
||||
cmp.AllowUnexported(snapshot{}),
|
||||
cmp.AllowUnexported(attribute.Set{}),
|
||||
cmp.AllowUnexported(attribute.Distinct{}),
|
||||
cmp.AllowUnexported(attribute.Value{}),
|
||||
cmp.AllowUnexported(Event{}),
|
||||
cmp.AllowUnexported(trace.TraceState{}))
|
||||
|
Reference in New Issue
Block a user