Skip to content
Discussion options

You must be logged in to vote

Obviously the opentelemetry collector expects the full rendered message in the body field. Maybe it might be an idea to create a own processor to support also message templating. Anyway I have missed the option in OpenTelemetry.Logs.OpenTelemetryLoggerOptions on the application client:

loggingBuilder.AddOpenTelemetry(options =>
{
    options.IncludeFormattedMessage = true;
    options.AddOtlpExporter(options =>
    {
        options.Endpoint = new Uri("http://localhost:4318/v1/logs");
        options.Protocol = OtlpExportProtocol.HttpProtobuf;
    });
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by HHobeck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant