From 785b2bf799ed1f64d5598c4e85f4d568888f999b Mon Sep 17 00:00:00 2001 From: Kemal Hadimli Date: Thu, 28 Nov 2024 14:22:58 +0000 Subject: [PATCH] feat: Add `cloudquery.plugin.path` attribute to traces --- serve/opentelemetry.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/serve/opentelemetry.go b/serve/opentelemetry.go index 4e5b777c2f..3837728f54 100644 --- a/serve/opentelemetry.go +++ b/serve/opentelemetry.go @@ -11,6 +11,7 @@ import ( "github.com/rs/zerolog" "go.opentelemetry.io/otel" + "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp" "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp" "go.opentelemetry.io/otel/exporters/otlp/otlptrace" @@ -32,6 +33,7 @@ func newResource(p *plugin.Plugin) *resource.Resource { semconv.SchemaURL, semconv.ServiceName("cloudquery-"+p.Name()), semconv.ServiceVersion(p.Version()), + attribute.Key("cloudquery.plugin.path").String(p.Team()+"/"+string(p.Kind())+"/"+p.Name()), ), ) if err != nil {