OpTrace
The Nevis OpenTelemetry agent also serves as a replacement for OpTrace. It can be enabled by setting the OpTrace
log category to INFO
:
Loggers:
Logger:
- name: "OpTrace"
level: "INFO"
If the agent is only used for logging purposes, the forwarding to an OpenTelemetry collector can be disabled with the following otel.properties
file:
otel.service.name=<service.name>
otel.resource.attributes=service.version=<version>,service.instance.id=<intanceId>
otel.traces.exporter=none
otel.metrics.exporter=none
otel.logs.exporter=none
Additionally, change the log format to include span_id
and trace_id
:
PatternLayout:
pattern: "[esauth4sv.log] %d{ISO8601} %-15.15t %mdc{trace_id} %mdc{span_id} %-20.20c %-5.5p %m%n"
This is the default configuration generated by nevisAdmin 4.