RehanSaeed / Serilog.Enrichers.Span

Enrich Serilog log events with properties from Open Telemetry spans.
MIT License
95 stars 19 forks source link

Provide example of setting SpanOptions in appsettings.json #67

Closed cdarrigo closed 1 year ago

cdarrigo commented 3 years ago

Documentation Request - set Enricher options in appsettings

the enricher has a SpanOptions class that allows the user to include span tags in the log events. Please provide a sample on how this would be enabled when configuring serilog in appsettings.json file.

Keviento commented 3 years ago

This should work

"Enrich": [
      {
        "Name": "WithSpan",
        "Args": {
          "spanOptions": {
            "IncludeTags": "true"
          }
        }
      }
    ]
RehanSaeed commented 2 years ago

Want to submit a PR?