-
Notifications
You must be signed in to change notification settings - Fork 869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camel instrumentation - SNS propagation impl + tests #2562
Conversation
ghost
commented
Mar 11, 2021
- fixes issues with SNS to SQS propagation for Apache Camel instr
- added tests (currently ignored - work only with live AWS)
...t/src/test/groovy/io/opentelemetry/javaagent/instrumentation/apachecamel/SnsCamelTest.groovy
Show resolved
Hide resolved
trace(6, 3) { | ||
span(0) { | ||
name "SNS.Publish" | ||
kind CLIENT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be PRODUCER?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a tough question.
In general, SNS message can be fan out to SQS (becoming a message), HTTP, lambda, kinesis or even email. In some of these cases we would have PUBLISH (send) - CLIENT (get) while now for SQS we have CLIENT (send) - CONSUMER (get).
If we could, the best way IMO would be to modify "sending" span kind once a message is consumed (by SQS), but we can't.
@anuraaga what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I understand of the spec, we'd still generally expect the SNS message to be treated like messaging conventions so would be PRODUCER
. The trickiness related to CLIENT and PRODUCER has come up before, I'm ok with just picking any for now but good chance of changing later.
...gent/src/test/groovy/io/opentelemetry/javaagent/instrumentation/apachecamel/SnsConfig.groovy
Outdated
Show resolved
Hide resolved
...t/src/test/groovy/io/opentelemetry/javaagent/instrumentation/apachecamel/SnsCamelTest.groovy
Show resolved
Hide resolved
...t/src/test/groovy/io/opentelemetry/javaagent/instrumentation/apachecamel/SnsCamelTest.groovy
Outdated
Show resolved
Hide resolved
@kubawach Please rebase again. Main branch failure was fixed |