(ctx context.Context)
| 106 | } |
| 107 | |
| 108 | func 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 | |
| 124 | type errorhandler struct { |
| 125 | logger logging.Logger |
no test coverage detected