The Jaeger exporter communicates to a Jaeger Agent through the compact thrift protocol on the Compact Thrift API port.
dotnet add package OpenTelemetry.Exporter.Jaeger
You can configure the JaegerExporter
by following the directions below:
ServiceName
: The name of your application or service.AgentHost
: Usuallylocalhost
since an agent should usually be running on the same machine as your application or service.AgentPort
: The compact thrift protocol port of the Jaeger Agent (default6831
).MaxPacketSize
: The maximum size of each UDP packet that gets sent to the agent. (default65000
).
See the
TestJaegerExporter.cs
for an example of how to use the exporter.