An open API service indexing awesome lists of open source software.

https://github.com/shuttle/shuttle.esb.opentelemetry

OpenTelemetry instrumentation for Shuttle.Esb implementations.
https://github.com/shuttle/shuttle.esb.opentelemetry

Last synced: about 2 months ago
JSON representation

OpenTelemetry instrumentation for Shuttle.Esb implementations.

Awesome Lists containing this project

README

        

# Shuttle.Esb.OpenTelemetry

```
PM> Install-Package Shuttle.Esb.OpenTelemetry
```

OpenTelemetry instrumentation for Shuttle.Esb implementations.

## Configuration

```c#
services.AddServiceBusInstrumentation(builder =>
{
// default values
builder.Options.Enabled = true;
builder.Options.IncludeSerializedMessage = true;
builder.Options.TransientInstance = false;
builder.Options.HeartbeatIntervalDuration = TimeSpan.FromSeconds(30);

// or bind from configuration
configuration
.GetSection(ServiceBusOpenTelemetryOptions.SectionName)
.Bind(builder.Options);
});

## Options

| Option | Default | Description |
| --- | --- | --- |
| `Enabled` | `true` | Indicates whether to perform instrumentation. |
| `IncludeSerializedMessage` | `true` | If 'true', includes the serialized message as attribute `SerializedMessage` in the trace. |
| `TransientInstance` | `false` | Indicates whether the endpoint is transient, such as when deployed as a container. |
| `HeartbeatIntervalDuration` | `00:00:30` | The duration between `Heartbeat` traces. |