Skip to content

otelmongo: replace ConnectionID parsing wth server host & port once mongo-driver exposes it #9370

Description

@prestonvasquez

Context

otelmongo's peerInfo derives network.peer.address and network.peer.port by running net.SplitHostPort on mongo-driver command event's ConnectionID. In V2, that value is formatted as host:port[-N] so the instrumentation has to reverse-engineer the driver's internal connectionID format.

Definition of Done

When mongo-go-driver releases GODRIVER-4058, we should populate network.peer.address and network.peer.port directly from the monitoring event.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions