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

otlp logs interface mixes attributes with resource attributes #14788

Open
abh opened this issue Nov 6, 2024 · 0 comments
Open

otlp logs interface mixes attributes with resource attributes #14788

abh opened this issue Nov 6, 2024 · 0 comments
Labels
OTEL/OLTP type/feature Something new we should do

Comments

@abh
Copy link

abh commented Nov 6, 2024

I tried upgrading our log pipeline from "write to disk / buffer -> promtail -> loki" to "write to otelcol -> loki" to better align metadata between traces and logs.

Other benefits: avoid the buffer through the kube logging system for some applications that log a lot; log directly to existing otelcol infrastructure from applications not running inside the kube cluster.

It's working great, except the loki logs in grafana don't show the attributes provided with the logs. Previously we'd have either JSON or a very human readable version like

msg="some message" attrA=a attrB=b

Now the log explorer just says

some message

I looked at how Grafana could do this better and realized that with the otlp loki logs it's basically impossible because the ingestion flattens the resource attributes with the "log attributes".

So ... hence the bug / feature request: To be useful for native OTLP logs I believe Loki needs to separate out the resource attributes / labels with the message specific attributes / labels.

I realize you all probably know this already, but I didn't see another issue for it so I figured it might be worth logging.

@abh abh changed the title otlp interface mixes attributes with resource attributes otlp logs interface mixes attributes with resource attributes Nov 8, 2024
@JStickler JStickler added type/feature Something new we should do OTEL/OLTP labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OTEL/OLTP type/feature Something new we should do
Projects
None yet
Development

No branches or pull requests

2 participants