We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c921c18 commit 9c51fe6Copy full SHA for 9c51fe6
serve/opentelemetry.go
@@ -26,9 +26,15 @@ import (
26
27
// newResource returns a resource describing this application.
28
func newResource(p *plugin.Plugin) *resource.Resource {
29
+ def := resource.Default()
30
+ schemaURL := def.SchemaURL()
31
+ if schemaURL == "" {
32
+ schemaURL = semconv.SchemaURL
33
+ }
34
r, err := resource.Merge(
- resource.Default(),
- resource.NewSchemaless(
35
+ def,
36
+ resource.NewWithAttributes(
37
+ schemaURL,
38
semconv.ServiceName("cloudquery-"+p.Name()),
39
semconv.ServiceVersion(p.Version()),
40
),
0 commit comments