forked from mtusi2026/mtusi2026lab6
feat(otel): lab6 export worker slots and process CPU and RSS
This commit is contained in:
@@ -106,6 +106,9 @@ func Setup(ctx context.Context, cfg SetupConfig) (*Providers, error) {
|
||||
|
||||
otel.SetTracerProvider(tp)
|
||||
otel.SetMeterProvider(mp)
|
||||
if err := registerProcessMetrics(mp.Meter("process")); err != nil {
|
||||
slog.Warn("Не удалось зарегистрировать метрики процесса", "error", err)
|
||||
}
|
||||
|
||||
// Пропагация контекста через W3C Trace Context и Baggage
|
||||
otel.SetTextMapPropagator(propagation.NewCompositeTextMapPropagator(
|
||||
|
||||
Reference in New Issue
Block a user