Skip to content

Commit cc581e4

Browse files
author
adibrastegarnia
committed
Address comments
1 parent 044cf1e commit cc581e4

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

5-
package otelemetry
5+
package otel
66

77
import (
88
"context"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

5-
package otelemetry
5+
package otel
66

77
import (
88
"context"
@@ -24,7 +24,7 @@ func UnaryServerTelemetryInterceptor(opts ...InstrumentationOption) grpc.UnarySe
2424
requestMetadata, _ := metadata.FromIncomingContext(ctx)
2525
metadataCopy := requestMetadata.Copy()
2626

27-
instrumentation := NewInstrumentation(opts)
27+
instrumentation := NewInstrumentation(opts...)
2828
bags, spanCtx := instrumentation.Extract(ctx, &metadataCopy)
2929
ctx = baggage.ContextWithBaggage(ctx, bags)
3030

@@ -85,7 +85,7 @@ func StreamTelemetryServerInterceptor(opts ...InstrumentationOption) grpc.Stream
8585
requestMetadata, _ := metadata.FromIncomingContext(ctx)
8686
metadataCopy := requestMetadata.Copy()
8787

88-
instrumentation := NewInstrumentation(opts)
88+
instrumentation := NewInstrumentation(opts...)
8989
bags, spanCtx := instrumentation.Extract(ctx, &metadataCopy)
9090
ctx = baggage.ContextWithBaggage(ctx, bags)
9191

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

5-
package otelemetry
5+
package otel
66

77
import (
88
"context"
@@ -44,7 +44,7 @@ func (o *InstrumentationOptions) Extract(ctx context.Context, metadata *metadata
4444
type InstrumentationOption func(*InstrumentationOptions)
4545

4646
// NewInstrumentation creates a configuration for an instrumentation using a set of given options
47-
func NewInstrumentation(opts []InstrumentationOption) *InstrumentationOptions {
47+
func NewInstrumentation(opts ...InstrumentationOption) *InstrumentationOptions {
4848
c := &InstrumentationOptions{
4949
propagators: otel.GetTextMapPropagator(),
5050
tracerProvider: trace.NewNoopTracerProvider(),
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

5-
package otelemetry
5+
package otel
66

77
import (
88
"context"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

5-
package otelemetry
5+
package otel
66

77
import (
88
"context"

0 commit comments

Comments
 (0)