[bug] EntityFrameworkCore spans are not populating server.address following the otel conventions #2438
Labels
bug
Something isn't working
comp:instrumentation.entityframeworkcore
Things related to OpenTelemetry.Instrumentation.EntityFrameworkCore
Component
OpenTelemetry.Instrumentation.EntityFrameworkCore
Package Version
Runtime Version
net8.0,net9.0, any
Description
As reported in the OTEL docs,
server.address
should be populated with the server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. i.e.example.com
,10.1.2.80
,/tmp/my.sock
.Meanwhile, the latest version of OpenTelemetry.Instrumentation.EntityFrameworkCore populate the field prefixing it with the connection protocol
tcp
.https://opentelemetry.io/docs/specs/semconv/attributes-registry/server/#server-attributes
Steps to Reproduce
Configure the instrumentation and record some traces
Expected Result
server.address
to be populated asmy.domain.example
server.port
to be populated as5432
Actual Result
server.address
populated astcp:my.domain.example:5432
server.port
not populatedAdditional Context
No response
The text was updated successfully, but these errors were encountered: