Skip to content
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

opentracing logKV only logs values on error #818

Open
igorwwwwwwwwwwwwwwwwwwww opened this issue Sep 10, 2020 · 1 comment
Open

opentracing logKV only logs values on error #818

igorwwwwwwwwwwwwwwwwwwww opened this issue Sep 10, 2020 · 1 comment

Comments

@igorwwwwwwwwwwwwwwwwwwww

The APM agent ships with an adapter for opentracing. Opentracing supports a Span.LogKV operation that is similar to a multi-SetTag.

And indeed, that is how it being used in at least one project, thanos.

However, it appears that the APM agent is only using this mechanism for logging error messages:

func (c *logContext) emit(tracer *apm.Tracer, tx *apm.Transaction, span *apm.Span, time time.Time) {
if !c.errorEvent {
return
}

It would be great if custom, non-standard key-value entries were stored by the agent.

@axw
Copy link
Member

axw commented Sep 13, 2020

Thanks for opening the issue! I agree, this would be nice to have.

Right now the protocol between agents and server does not support sending arbitrary logs, which is why things are the way they are. We are looking into extending the protocol (elastic/apm-server#3723); if/when that happens, then I think it would make sense to come back and add full support for LogKV.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants