MCPcopy Create free account
hub / github.com/docker/secrets-engine / newResource

Function newResource

x/telemetry/otel.go:108–122  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

106}
107
108func newResource(ctx context.Context) *resource.Resource {
109 opts := []resource.Option{
110 resource.WithFromEnv(),
111 resource.WithOS(),
112 resource.WithHost(),
113 resource.WithAttributes(
114 semconv.ServiceNameKey.String("secrets-engine"),
115 ),
116 }
117 res, err := resource.New(ctx, opts...)
118 if err != nil {
119 otel.Handle(err)
120 }
121 return res
122}
123
124type errorhandler struct {
125 logger logging.Logger

Callers 1

InitializeOTelFunction · 0.85

Calls 2

HandleMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected