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

Translate natural LogRecord attributes to OTEL logging field #3655

Closed
Rockin2 opened this issue Jan 30, 2024 · 3 comments
Closed

Translate natural LogRecord attributes to OTEL logging field #3655

Rockin2 opened this issue Jan 30, 2024 · 3 comments

Comments

@Rockin2
Copy link

Rockin2 commented Jan 30, 2024

Hi!

I added recently to the Rust tracing appender crate logic to have natural attributes from the tracing crate.
Here is the source code :  opentelemetry-appender-tracing/src/layer.rs

At my previous job, I did that with an ElasticSearch handler. It was forked to an OpenSearch handler. opensearch-logger
Here is where we do the mapping from LogRecord to ECS : handlers.py

You can implement this by following the Otel conventions :) : Code attributes in semconv

@hirotasoshu
Copy link
Contributor

I think this should be closed by #3675

@lzchen
Copy link
Contributor

lzchen commented Feb 16, 2024

@Rockin2

Does #3675 encapsulate all attributes that you are interested in?

@lzchen lzchen added the logging label Feb 16, 2024
@Rockin2
Copy link
Author

Rockin2 commented Feb 16, 2024

Yes. I work for an observability company that works with otel and I think customers will like having automatic code attributes :).

@Rockin2 Rockin2 closed this as completed Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants