Skip to content

Commit

Permalink
[surfacers.otel] Change resource attributes. (cloudprober#657)
Browse files Browse the repository at this point in the history
- Container ID is a super long string and is not very useful.
- Pod info is available as host name on k8s.
  • Loading branch information
manugarg committed Dec 20, 2023
1 parent 2b7b4ed commit 5b8013b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion surfacers/internal/otel/otel.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func New(ctx context.Context, config *configpb.SurfacerConf, opts *options.Optio
exportInterval := time.Second * time.Duration(config.GetExportIntervalSec())
r := metric.NewPeriodicReader(exp, metric.WithProducer(os), metric.WithInterval(exportInterval))

res, err := resource.New(ctx, resource.WithHost(), resource.WithContainer(), resource.WithFromEnv())
res, err := resource.New(ctx, resource.WithHost(), resource.WithFromEnv())
if err != nil {
return nil, fmt.Errorf("failed to create resource: %v", err)
}
Expand Down

0 comments on commit 5b8013b

Please sign in to comment.