Skip to content

Commit

Permalink
move all config to config.go
Browse files Browse the repository at this point in the history
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
  • Loading branch information
fatsheep9146 committed Sep 5, 2022
1 parent 0ea3938 commit 4d65f8a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,20 @@ func WithTracerProvider(tp trace.TracerProvider) Option {
return tracerProviderOption{tp: tp}
}

type meterProviderOption struct{ mp metric.MeterProvider }

func (o meterProviderOption) apply(c *config) {
if o.mp != nil {
c.MeterProvider = o.mp
}
}

// WithMeterProvider returns an Option to use the MeterProvider when
// creating a Meter.
func WithMeterProvider(mp metric.MeterProvider) Option {
return meterProviderOption{mp: mp}
}

type metadataSupplier struct {
metadata *metadata.MD
}
Expand Down
33 changes: 0 additions & 33 deletions instrumentation/google.golang.org/grpc/otelgrpc/grpcmetric.go

This file was deleted.

0 comments on commit 4d65f8a

Please sign in to comment.