common/tracer: fix decoding when jaeger tracing is disabled#51043
common/tracer: fix decoding when jaeger tracing is disabled#51043
Conversation
2c32d7f to
98c7d78
Compare
98c7d78 to
8494ef3
Compare
8494ef3 to
ffa0c37
Compare
|
jenkins test api |
ffa0c37 to
08aa8ef
Compare
cbodley
left a comment
There was a problem hiding this comment.
looks good to me, assuming the array sizes are correct
08aa8ef to
e7ec677
Compare
|
jenkins test windows |
|
jenkins test make check |
@cbodley This comment made me look at the "jaeger is present" branch and I would like to raise a concern regarding taking in on-wire format definitions from third party headers ( I think it would be better to define two constants in one of our namespaces to the corresponding integers ( |
e7ec677 to
e3dc8cf
Compare
Makes sense. I went with your previous suggestion, so we no longer need to use those constants: |
+1 -- they are still used in the "jaeger is present" branch but that is out of scope of this PR. |
e3dc8cf to
ed0fdea
Compare
We aren't currently using jaeger tracing on Windows. The issue is that Windows hosts (or any other host that doesn't use jaeger) are experiencing message decoding failures after a recent change [1]. This change updates the tracer encoding so that messages from non-jaeger hosts may be decoded by services that use jaeger. [1] ceph#47457 Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
ed0fdea to
3701ffa
Compare
|
jenkins test make check |
|
jenkins test api |
|
jenkins test windows |
@cbodley, this makes sense. we should do that regrdless of this PR. we use these constants in the existing code |
|
jenkins test api |
1 similar comment
|
jenkins test api |
|
I don't see a point in running any of the suites on this PR since we don't seem to have non-jaeger package builds, at least not on main. Merging after running some manual tests covering jaeger-enabled OSDs <-> non-jaeger client and vice versa. |
@yuvalif Not sure if you quoted what you meant to quote in that comment. I'm choosing to interpret it as you agreeing with my suggestion to not use constants from opentelemetry headers directly in encoding code ;) |
common/tracer: fix decoding when jaeger tracing is disabled Reviewed-by: Casey Bodley <cbodley@redhat.com> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
We aren't currently using jaeger tracing on Windows. The issue is that Windows hosts (or any other host that doesn't use jaeger) are experiencing message decoding failures after a recent change [1]:
This change updates the tracer encoding so that messages from non-jaeger hosts may be decoded by services that use jaeger.
[1] #47457
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows