Skip to content

Commit

Permalink
chore: log current resource attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
iamKunalGupta committed Dec 3, 2024
1 parent 731fccf commit 0c11a03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flow/otel_metrics/otel_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,15 @@ func newOtelResource(otelServiceName string, attrs ...attribute.KeyValue) (*reso
semconv.ServiceNameKey.String(otelServiceName),
attribute.String(DeploymentUidKey, peerdbenv.PeerDBDeploymentUID()),
}, attrs...)
return resource.Merge(
res, err := resource.Merge(
resource.Default(),
resource.NewWithAttributes(
semconv.SchemaURL,
allAttrs...,
),
)
slog.Info("Created OpenTelemetry resource", slog.Any("resource", res), slog.Any("attrs", res.Attributes()))
return res, err
}

func temporalMetricsFilteringView() sdkmetric.View {
Expand Down

0 comments on commit 0c11a03

Please sign in to comment.