hs-opentelemetry-exporter-otlp 0.0.1.4 → 0.0.1.5
raw patch · 2 files changed
+20/−20 lines, 2 filesdep ~hs-opentelemetry-apiPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: hs-opentelemetry-api
API changes (from Hackage documentation)
Files
hs-opentelemetry-exporter-otlp.cabal view
@@ -1,22 +1,22 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.34.5.+-- This file has been generated from package.yaml by hpack version 0.35.2. -- -- see: https://github.com/sol/hpack -name: hs-opentelemetry-exporter-otlp-version: 0.0.1.4-synopsis: OpenTelemetry exporter supporting the standard OTLP protocol-description: Please see the README on GitHub at <https://github.com/iand675/hs-opentelemetry/tree/main/exporters/otlp#readme>-category: OpenTelemetry, Telemetry, Monitoring, Observability, Metrics-homepage: https://github.com/iand675/hs-opentelemetry#readme-bug-reports: https://github.com/iand675/hs-opentelemetry/issues-author: Ian Duncan-maintainer: ian@iankduncan.com-copyright: 2021 Ian Duncan-license: BSD3-license-file: LICENSE-build-type: Simple+name: hs-opentelemetry-exporter-otlp+version: 0.0.1.5+synopsis: OpenTelemetry exporter supporting the standard OTLP protocol+description: Please see the README on GitHub at <https://github.com/iand675/hs-opentelemetry/tree/main/exporters/otlp#readme>+category: OpenTelemetry, Telemetry, Monitoring, Observability, Metrics+homepage: https://github.com/iand675/hs-opentelemetry#readme+bug-reports: https://github.com/iand675/hs-opentelemetry/issues+author: Ian Duncan+maintainer: ian@iankduncan.com+copyright: 2021 Ian Duncan+license: BSD3+license-file: LICENSE+build-type: Simple extra-source-files: README.md ChangeLog.md@@ -38,7 +38,7 @@ , bytestring , case-insensitive , clock- , hs-opentelemetry-api ==0.0.3.*+ , hs-opentelemetry-api >=0.0.3 && <0.2 , hs-opentelemetry-otlp ==0.0.1.* , http-client , http-conduit@@ -66,7 +66,7 @@ , bytestring , case-insensitive , clock- , hs-opentelemetry-api ==0.0.3.*+ , hs-opentelemetry-api >=0.0.3 && <0.2 , hs-opentelemetry-exporter-otlp , hs-opentelemetry-otlp ==0.0.1.* , http-client
src/OpenTelemetry/Exporter/OTLP.hs view
@@ -128,7 +128,7 @@ } -loadExporterEnvironmentVariables :: MonadIO m => m OTLPExporterConfig+loadExporterEnvironmentVariables :: (MonadIO m) => m OTLPExporterConfig loadExporterEnvironmentVariables = liftIO $ do OTLPExporterConfig <$> lookupEnv "OTEL_EXPORTER_OTLP_ENDPOINT"@@ -328,7 +328,7 @@ ) -immutableSpansToProtobuf :: MonadIO m => HashMap OT.InstrumentationLibrary (Vector OT.ImmutableSpan) -> m ExportTraceServiceRequest+immutableSpansToProtobuf :: (MonadIO m) => HashMap OT.InstrumentationLibrary (Vector OT.ImmutableSpan) -> m ExportTraceServiceRequest immutableSpansToProtobuf completedSpans = do spansByLibrary <- mapM makeInstrumentationLibrarySpans spanGroupList pure $@@ -356,7 +356,7 @@ spanGroupList = H.toList completedSpans - makeInstrumentationLibrarySpans :: MonadIO m => (OT.InstrumentationLibrary, Vector OT.ImmutableSpan) -> m InstrumentationLibrarySpans+ makeInstrumentationLibrarySpans :: (MonadIO m) => (OT.InstrumentationLibrary, Vector OT.ImmutableSpan) -> m InstrumentationLibrarySpans makeInstrumentationLibrarySpans (library, completedSpans_) = do spans_ <- mapM makeSpan completedSpans_ pure $@@ -371,7 +371,7 @@ -- & schemaUrl .~ "" -- TODO -makeSpan :: MonadIO m => OT.ImmutableSpan -> m Span+makeSpan :: (MonadIO m) => OT.ImmutableSpan -> m Span makeSpan completedSpan = do let startTime = timestampNanoseconds (OT.spanStart completedSpan) parentSpanF <- do