Skip to content

Make MongoHandlerContext public to leverage contextual information to customize Observations #4622

Closed
@kevinat

Description

@kevinat

Observation tracing remote service name is hardcoded as "mongo". For microservices, we may need remote service name in pattern mongo-dbname.

MongoObservationCommandListener.java

line 108:
--- observationContext.setRemoteServiceName("mongo");
+++ observationContext.setRemoteServiceName("mongo-%s".formatted(databaseName));

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions