Skip to content

Commit

Permalink
[otlp] Add note on ilogger scopes (#4818)
Browse files Browse the repository at this point in the history
  • Loading branch information
vishweshbankwar authored Aug 30, 2023
1 parent 759d540 commit 72d0a6c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/OpenTelemetry.Exporter.OpenTelemetryProtocol/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ Core](../../examples/AspNetCore/Program.cs) example app. Check this
for configuring OpenTelemetry with `ILogger` for certain application types such
as ASP.NET Core and .NET Worker.

**ILogger Scopes**: OTLP Log Exporter supports exporting `ILogger` scopes as
Attributes. Scopes must be enabled at the SDK level using
[IncludeScopes](../../docs/logs/customizing-the-sdk/Readme.md#includescopes)
setting on `OpenTelemetryLoggerOptions`.

> **Note**
> Scope attributes with key set as empty string or `{OriginalFormat}`
are ignored by exporter. Duplicate keys are exported as is.

## Configuration

You can configure the `OtlpExporter` through `OtlpExporterOptions`
Expand Down

0 comments on commit 72d0a6c

Please sign in to comment.