Skip to content

[otelmongo] bump semconv to 1.26.0 #6171

@prestonvasquez

Description

@prestonvasquez

Problem Statement

otelmongo is currently using semconv/v1.17.0, suggest updating to semconv/v1.26.0.

Proposed Solution

key/value pair changes migrating from 1.17.0 to 1.26.0 include:

Old Func New Func Old Key New Key Notes
DBOperation DBOperationName db.operation db.operation.name
DBName DBNamespace db.name db.namespace
NetPeerName NetworkPeerAddress net.peer.name network.peer.address Currently the hostname is used for the peer name. Documentation suggest using the server address.
NetPeerPort NetworkPeerPort net.peer.port network.peer.port
NetTransportTCP NetworkingTransportTCP net.transport network.transport Network transport no longer includes the ip_ portion defined on the deprecated net.trasnport. Instead, this value is either tcp or udp.
DBStatement DBQueryText db.statement db.query.text There is no deprecated analogue to `db.statement` according to the documentation. Db.query.text seemed like a natural fit.

Alternatives

Since these fields are deprecated, there is no alternative other than leaving the semconv version static.

Prior Art

NA

Additional Context

It's worth noting that this is a breaking change if telemetry key/values are considered stable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions