Skip to content

Commit 785b2bf

Browse files
committed
feat: Add cloudquery.plugin.path attribute to traces
1 parent 698c50f commit 785b2bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

serve/opentelemetry.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"github.com/rs/zerolog"
1212

1313
"go.opentelemetry.io/otel"
14+
"go.opentelemetry.io/otel/attribute"
1415
"go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp"
1516
"go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp"
1617
"go.opentelemetry.io/otel/exporters/otlp/otlptrace"
@@ -32,6 +33,7 @@ func newResource(p *plugin.Plugin) *resource.Resource {
3233
semconv.SchemaURL,
3334
semconv.ServiceName("cloudquery-"+p.Name()),
3435
semconv.ServiceVersion(p.Version()),
36+
attribute.Key("cloudquery.plugin.path").String(p.Team()+"/"+string(p.Kind())+"/"+p.Name()),
3537
),
3638
)
3739
if err != nil {

0 commit comments

Comments
 (0)