-
Notifications
You must be signed in to change notification settings - Fork 126
Logs supplied in Span::FinishWithOptions are silently discarded #57
Comments
Jaeger cpp-client was previously dropping logs included in a FinishSpanOptions silently on the floor. Fixes jaegertracing#57 Signed-off-by: Craig Ringer <[email protected]>
That logging interface was recently added and hasn't actually been put into an OT release yet. But I can a release for it if it's something you're waiting on. |
@rnburn Good to know. Useful interface :) No rush. To make any of this work requires running with my integration branch that currently merges in flush-on-close, save-finish-span-logs and local-dependencies-support topic branches, all pending PRs. So building a recent OT is hardly a hassle on top. @isaachier may have an opinion about the next jaeger cpp-client release that's relevant though. (The mess with Thrift in #45 means Jaeger cpp-client is in practice confined to deployments that can compile their own local Thrift anyway, either via Hunter or direct local install.) BTW, I went looking for a In any case the logs support added in #58 works for me. |
@ringerc -- The current interface was copied over from Go's API. In the PR, we did discuss another interface like what you're suggesting You might put in an issue to OT-cpp for being able to add them directly to the span. One of the open questions is whether you should also be able to specify the timestamp in such an API. |
Jaeger cpp-client was previously dropping logs included in a FinishSpanOptions silently on the floor. Fixes #57 Signed-off-by: Craig Ringer <[email protected]>
jaegertracing::Span::FinishWithOptions
entirely ignores theoptions.log_records
field ofopentracing::FinishSpanOptions
.Any logs so passed are discarded.
Not ideal, because the
Span::Log
method only accepts astd::initializer_list
so it's clumsy when you have a dynamic set of keys in your logs.Will send a pull, this just documents the issue first.
The text was updated successfully, but these errors were encountered: