https://signoz.io logo
#general
Title
# general
a

Al

02/02/2024, 10:34 PM
Hi team! Is it expected, when exporting kubernetes metrics using signoz/k8s-infra to a self-hosted signoz deployment, that the span_id and trace_id will be empty? Log events do not seem to contain trace_id and therefore the "Go to related logs" does not work.
p

Prashant Shahi

02/03/2024, 5:02 AM
yes, it is expected. Automatic log collection enabled by k8s-infra uses filelog receiver, and it would not be possible to have correlation between the logs and traces. You will have to collect logs from the OTEL SDK itself for this. cc @nitya-signoz
n

nitya-signoz

02/05/2024, 5:30 AM
In case you have trace_id, span_id in your logs in some pattern you can extract them using pipeline https://signoz.io/docs/logs-pipelines/introduction/
a

Al

02/05/2024, 2:13 PM
Ahh, now I understand. Thank you @Prashant Shahi and @nitya-signoz
You will have to collect logs from the OTEL SDK itself for this.
@Prashant Shahi Is there documentation that explains? Our applications do implement OTEL SDK for traces, exceptions and metrics.