Skip to content

Commit 889102e

Browse files
authored
feat: Add cloudquery.plugin.path attribute to traces (#1978)
This might be needed eventually when multiple source/dests of the same name are being run.
1 parent f1c0106 commit 889102e

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"
@@ -37,6 +38,7 @@ func newResource(p *plugin.Plugin) *resource.Resource {
3738
schemaURL,
3839
semconv.ServiceName("cloudquery-"+p.Name()),
3940
semconv.ServiceVersion(p.Version()),
41+
attribute.Key("cloudquery.plugin.path").String(p.Team()+"/"+string(p.Kind())+"/"+p.Name()),
4042
),
4143
)
4244
if err != nil {

0 commit comments

Comments
 (0)