File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,11 @@ import (
13
13
"github.com/go-faster/sdk/app"
14
14
"github.com/mergestat/timediff"
15
15
"go.opentelemetry.io/otel/metric"
16
- semconv "go.opentelemetry.io/otel/semconv/v1.18.0"
17
16
"go.uber.org/atomic"
18
17
"go.uber.org/zap"
19
18
"golang.org/x/sync/errgroup"
20
19
21
20
"github.com/go-faster/gh-archive-clickhouse/internal/gh"
22
- "github.com/go-faster/gh-archive-clickhouse/internal/otelenv"
23
21
)
24
22
25
23
type Service struct {
@@ -214,12 +212,6 @@ Fetch:
214
212
}
215
213
216
214
func main () {
217
- if err := os .Setenv ("OTEL_RESOURCE_ATTRIBUTES" , otelenv .Value (
218
- semconv .ServiceNameKey .String ("gh-archived" ),
219
- semconv .ServiceNamespaceKey .String ("faster" ),
220
- )); err != nil {
221
- panic (err )
222
- }
223
215
app .Run (func (ctx context.Context , lg * zap.Logger , m * app.Telemetry ) error {
224
216
g , ctx := errgroup .WithContext (ctx )
225
217
@@ -282,5 +274,8 @@ func main() {
282
274
return s .Send (ctx )
283
275
})
284
276
return g .Wait ()
285
- })
277
+ },
278
+ app .WithServiceName ("gh-archived" ),
279
+ app .WithServiceNamespace ("faster" ),
280
+ )
286
281
}
You can’t perform that action at this time.
0 commit comments