Conditions | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | package infrastructures |
||
18 | func InitTracer(cfg config.SentryConfigStruct) error { |
||
19 | initSentry(cfg) |
||
20 | |||
21 | tp := sdktrace.NewTracerProvider( |
||
22 | sdktrace.WithSpanProcessor(sentryotel.NewSentrySpanProcessor()), |
||
23 | ) |
||
24 | otel.SetTracerProvider(tp) |
||
25 | otel.SetTextMapPropagator(sentryotel.NewSentryPropagator()) |
||
26 | |||
27 | return nil |
||
28 | } |
||
51 |