snippet inject support like <head lang="en">#8736
Conversation
|
CC @siyuniu-ms |
|
There are three solutions currently I could think about:
|
|
|
I write a simple implemention for let user passed multiple head tag |
|
@oliver-zhang is it possible to solve this without requiring user configuration? e.g. when scanning, if we find |
@siyuniu-ms What do you think? Which way is better? |
|
I believe that Trask solution is better because it would result in fewer bugs and reduce the workload for customers. This would save them time in terms of becoming familiar with this functionality. |
…/io/opentelemetry/javaagent/bootstrap/servlet/InjectionState.java Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
|
@mateuszrzeszutek Please take a look at this |
mateuszrzeszutek
left a comment
There was a problem hiding this comment.
Hey @oliver-zhang , sorry for the delay. Overall it LGTM 👍
Could you modify the existing snippet injection tests to handle that case?
@mateuszrzeszutek Already added |
@mateuszrzeszutek @oliver-zhang what do you think of adding these new tests to the unit tests ( |
@mateuszrzeszutek @trask Already added to ( |
|
@mateuszrzeszutek @trask Please take a look at this, what else needs to be done? |
I'm in favor of removing the new integration tests in this PR, they add a lot of extra code and I don't think have much value over the new "unit tests" |
|
@mateuszrzeszutek What do you think ? |
mateuszrzeszutek
left a comment
There was a problem hiding this comment.
Sorry for the delay; LGTM as well 👍
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com> Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
Closes #8734