Skip to content

Commit be23429

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

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

pkg/grpc/otelemetry/event.go renamed to pkg/grpc/otel/event.go

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"

pkg/grpc/otelemetry/interceptors.go renamed to pkg/grpc/otel/interceptors.go

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"

pkg/grpc/otelemetry/options.go renamed to pkg/grpc/otel/options.go

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(),

pkg/grpc/otelemetry/utils.go renamed to pkg/grpc/otel/utils.go

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"

pkg/grpc/otelemetry/wrapstream.go renamed to pkg/grpc/otel/wrapstream.go

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)