Skip to content

How to export logs on grpc endpoint? #100

Open
@bangbaew

Description

@bangbaew

According to the Official OpenTelemetry Website , if I set OTEL_EXPORTER_OTLP_ENDPOINT env, it will apply to all OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, OTEL_EXPORTER_OTLP_METRICS_ENDPOINT, OTEL_EXPORTER_OTLP_LOGS_ENDPOINT, but this crate seems to apply to only OTEL_EXPORTER_OTLP_TRACES_ENDPOINT as shown on startup, I wanna export Axum logs to OpenTelemetry Collector endpoint, which is then exported to Loki.

I could do this in Actix Web using opentelemetry_appender_log crate, I wonder how to achieve this in Axum?
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions