All notable changes to this project will be documented in this file.
Note: There are only dependency bumps in this release.
Note: There are only dependency bumps in this release.
- Only use ANSI escape sequences if stdout is a terminal/tty. Piping the output to a file will now result in plain text log messages (#1183).
- Fix compilation failures when not enabling default features (#1162).
- Use constants from
opentelemetry-semantic-conventionsinstead of hard-coded strings (#1055). - Bump
opentelemetryand related crates to0.29.xandtracing-opentelemetryto0.30.0(#1021).
- Only derive
clap::ValueEnumif theclapfeature is enabled (#1026).
- Add support for JSON console log output (#1012).
- A new CLI argument was added:
--console-log-format. It can be set toplain(default), orjson.
- A new CLI argument was added:
- BREAKING: Update and align telemetry related CLI arguments in
TelemetryOptions(#1009).--console-log-disabledinstead of--no-console-output.--file-log-directoryinstead of--rolling-logs.--file-log-rotation-periodinstead of--rolling-logs-period.--otel-log-exporter-enabledinstead of--otlp-logs.--otel-trace-exporter-enabledinstead of--otlp-traces.
- BREAKING: Update and align telemetry related environment variables (#1009).
CONSOLE_LOG_LEVELinstead ofCONSOLE_LOG.FILE_LOG_LEVELinstead ofFILE_LOG.OTEL_LOG_EXPORTER_LEVELinstead ofOTLP_LOG.OTEL_TRACE_EXPORTER_LEVELinstead ofOTLP_TRACE.
- BREAKING: Allow configuration of
file_log_max_files(#1010).- Adds the
--file-log-max-filesCLI argument (env:FILE_LOG_MAX_FILES). FileLogSettingsBuilder::with_max_log_fileswhich took ausizewas renamed toFileLogSettingsBuilder::with_max_filesand now takes animpl Into<Option<usize>>for improved builder ergonomics.
- Adds the
- Add new
Tracing::pre_configuredmethod (#1001).- Add
TelemetryOptionsstruct andRollingPeriodenum - Add
clapfeature to enableTelemetryOptionsbeing used as CLI arguments
- Add
- BREAKING: Change
FileLogSettingsBuilder::with_rotation_periodto takeimpl Into<Rotation>instead ofRotation(#1001).
- BREAKING: Allow customization of the rolling file appender #995.
- Add required
filename_suffixfield. - Add
with_rotation_periodmethod. - Add
with_max_log_filesmethod.
- Add required
- Bump OpenTelemetry related dependencies (#977).
opentelemetryto 0.28.0opentelemetry_sdkto 0.28.0opentelemetry-appender-tracingto 0.28.0opentelemetry-otlpto 0.28.0opentelemetry-semantic-conventionsto 0.28.0tracing-opentelemetryto 0.29.0
- Allow
Option<_>to be used to enable/disable a subscriber (#951). - Introduce common
Settingsand subscriber specific settings (#901). - Add support for logging to files (#933).
- BREAKING: Change subscriber settings into an enum to indicate if the subscriber is enabled/disabled (#951).
- BREAKING: Rename
TracingBuildermethods with long names, and prefix withwith_(#901). - BREAKING: Use the new subscriber settings in the
TracingBuilder(#901).
- BREAKING: Remove
Derefimpls for subscriber settings and removed theenabledfields andenabled()methods (#951).
- BREAKING: Add support for setting the environment variable for each configured tracing subscriber (#801).
- Use OpenTelemetry Context in Axum instrumentation layer, adjust log and span level, simplify trace config (#811).
- tracing: Upgrade opentelemetry crates, simplify trace config, fix shutdown conditions, use new way to shutdown LoggerProvider.
- instrumentation/axum: demote event severity for errors easily caused by clients, replace parent span context if given in http header and link to previous trace contexts.
- Bump rust-toolchain to 1.79.0 (#822).
- Bump Rust dependencies and GitHub Actions (#782).
- Bump GitHub workflow actions (#772).
- Revert
zeroizeversion bump (#772).
- Prevent infinite events being exported via OTLP, as described in open-telemetry/opentelemetry-rust#761 (#796).