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

Support sending arbitrary tracing events to Elastic APM Server #2305

Closed
ohadravid opened this issue Feb 8, 2021 · 1 comment
Closed

Support sending arbitrary tracing events to Elastic APM Server #2305

ohadravid opened this issue Feb 8, 2021 · 1 comment

Comments

@ohadravid
Copy link

ohadravid commented Feb 8, 2021

Is your feature request related to a problem? Please describe.
When using the Elasticsearch exporter, tracing events generated as part of a span are not sent to Elasticsearch.
For example, this code:

from opentelemetry import trace

tracer = trace.get_tracer(__name__)

with tracer.start_as_current_span("my_span") as span:
    span.add_event("my_event")

will only generate the my_span span, while my_event will be ignored.

This is line with this comment in the exporter, saying it's a TODO.

Describe the solution you'd like
I'd like those events to be sent to Elasticsearch, just like they are sent to other backends.

Describe alternatives you've considered
We currently work around this by doing something like def add_event(name): with tracer.start_as_current_span(name): pass in Python, but in Rust for example that's not as easy.

Thanks!

@ohadravid ohadravid changed the title Support arbitrary tracing events to Elastic APM Server Support sending arbitrary tracing events to Elastic APM Server Feb 8, 2021
kisieland referenced this issue in kisieland/opentelemetry-collector-contrib Mar 16, 2021
@cyrille-leclerc
Copy link
Member

As Elastic APM is now exposing an OTLP intake that is intended to replace the Otel Collector Exporter for Elastic, this issue is now tracked on elastic/apm-server#4715

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

2 participants