-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update OTEL instrumentation scope #630
Comments
I'm curious if this is reference to the test files? (That's the only place I see the
If so, it seems like the definitions from semconv (example) might be useful? Maybe something like this: Existing// ... test/integration/traces_test.go
// ...
jaeger.Diff([]jaeger.Tag{
{Key: "otel.library.name", Type: "string", Value: "github.com/grafana/beyla"},
{Key: "telemetry.sdk.language", Type: "string", Value: "go"},
{Key: "telemetry.sdk.name", Type: "string", Value: "beyla"},
{Key: "service.namespace", Type: "string", Value: "integration-test"},
serviceInstance,
}, process.Tags) Leveraging the semconv definitions// ..
jaeger.Diff([]jaeger.Tag{
keyValueToJaegerTag(semconv.OTelScopeName("github.com/grafana/beyla")),
keyValueToJaegerTag(semconv.TelemetrySDKLanguageGo),
keyValueToJaegerTag(semconv.TelemetrySDKName("beyla")),
keyValueToJaegerTag(semconv.ServiceNamespace("integration-test")),
serviceInstance,
}, process.Tags)
assert.Empty(t, sd, sd.String())
// ...
// .. likely in some other helper location:
func keyValueToJaegerTag(kv attribute.KeyValue) jaeger.Tag {
return jaeger.Tag{
Key: string(kv.Key),
Type: kv.Value.Type().String(),
Value: kv.Value.AsInterface(),
}
} (My thought is since semconv gets autogenerated using the semantic-conventions repo, the deprecation info would be more readily available.) |
Hi @carrbs ! This actually references the generation of this value by the OTEL library, which is not explicit. Fixing this issue would probably require to the OpenTelemetry library and managing any breaking changes we could get. |
According to:
https://opentelemetry.io/docs/specs/otel/common/mapping-to-non-otlp/#instrumentationscope
otel.library.name is deprecated in favour of otel.scope.name
The text was updated successfully, but these errors were encountered: