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.
- Host: GitHub
- URL: https://github.com/shuttle/shuttle.esb.opentelemetry
- Owner: Shuttle
- License: bsd-3-clause
- Created: 2022-10-22T06:43:48.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-05T15:23:13.000Z (10 months ago)
- Last Synced: 2025-03-10T03:14:50.568Z (2 months ago)
- Language: C#
- Size: 61.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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. |