open-telemetry / opentelemetry-go-contrib

Collection of extensions for OpenTelemetry-Go.
https://opentelemetry.io/
Apache License 2.0
1.15k stars 545 forks source link

Add isolating log record processor #5823

Open pellared opened 3 months ago

pellared commented 3 months ago

Per https://github.com/open-telemetry/opentelemetry-specification/pull/4062

Isolating processor

Status: Development

This is an implementation of LogRecordProcessor ensuring the log record passed to OnEmit of the configured processor does not share mutable data with subsequent registered processors. For example, the OnEmit implementation of the isolating processor can be a decorator that makes a deep copy of the log record before passing it to the configured processor.

Configurable parameters:

  • processor - processor to be isolated.