Add endpoint.peer.service.mapping property to allow a user to specify…#562
Conversation
… mappings from an endpoint to a service name.
|
I went ahead and added the business logic too in case it helps with more context (it probably does for another issue I'm working on anyways :) ). |
…-instr-java into config-map-property
1e9947e to
e88fdae
Compare
…-instr-java into config-map-property
2cef348 to
281d9c4
Compare
|
Chatted with @trask and he suggested that we move the logic into a decorator and try it out. |
trask
left a comment
There was a problem hiding this comment.
i think this is a good initial implementation of open-telemetry/opentelemetry-specification#652
|
@anuraaga can u check the test failures? looks like they are of the non-sporadic variety 😄 |
…-instr-java into config-map-property
|
@trask Might need some help, have stared a while but can't for the life of me figure out what's wrong with the tests for the subclass of Step debugging in IntelliJ the assertions seem to work, but the unit test output from Gradle looks strange.
Any pointers to what might be missing? It seems like an interaction of spock + subclass but not sure. |
|
hey, looks like there's a ConfigUtils.withConfigOverride(
"endpoint.peer.service.mapping",
"1.2.3.4=catservice,dogs.com=dogsservice,opentelemetry.io=specservice") {
decorator.onPeerConnection(span, connection)
}
anyways, delete the |
|
Thanks - crazy behavior, and crazy debugging skills! |
… mappings from an endpoint to a service name and use it to map exported spans to a service name.
For #555