From 8f00ae69eb562b27fc3a54e5fb6e779804160e81 Mon Sep 17 00:00:00 2001 From: evanlauer1 Date: Tue, 30 Jul 2024 17:41:18 -0700 Subject: [PATCH] Added documentation --- api/src/OpenTelemetry/Internal/Logs/Types.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/OpenTelemetry/Internal/Logs/Types.hs b/api/src/OpenTelemetry/Internal/Logs/Types.hs index 63ad3f6d..8bf044a5 100644 --- a/api/src/OpenTelemetry/Internal/Logs/Types.hs +++ b/api/src/OpenTelemetry/Internal/Logs/Types.hs @@ -86,6 +86,7 @@ data LogRecordExporterInternal = LogRecordExporterInternal } +-- | @LogRecordExporter@s are an @MVar@ wrapper around @LogRecordExporterInternal@ that prevent @logRecordExporterExport@ from being called concurrently for the same exporter. newtype LogRecordExporter = LogRecordExporter {unExporter :: MVar LogRecordExporterInternal}