Johanna Öjeling
Johanna Öjeling
@agardnerIT I can reproduce the error on the `opamp-go` server when following your steps. It results in the server UI being inaccessible and the below log output: ```console $ cd...
SDK implementations with a pull metric exporter: - **C++**: [`exporter.cc`](https://github.com/open-telemetry/opentelemetry-cpp/blob/main/exporters/prometheus/src/exporter.cc) - **.NET**: [`PrometheusExporterMiddleware.cs`](https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterMiddleware.cs) - **Go**: [`exporter.go`](https://github.com/open-telemetry/opentelemetry-go/blob/main/exporters/prometheus/exporter.go) - **Java**: [`PrometheusHttpServer.java`](https://github.com/open-telemetry/opentelemetry-java/blob/main/exporters/prometheus/src/main/java/io/opentelemetry/exporter/prometheus/PrometheusHttpServer.java) - **JavaScript**: [`PrometheusExporter.ts`](https://github.com/open-telemetry/opentelemetry-js/blob/main/experimental/packages/opentelemetry-exporter-prometheus/src/PrometheusExporter.ts) - **Python**: [`prometheus/__init__.py`](https://github.com/open-telemetry/opentelemetry-python/blob/main/exporter/opentelemetry-exporter-prometheus/src/opentelemetry/exporter/prometheus/__init__.py)
SDK implementations that have a target info config option: - **C++**: [`exporter_options.h`](https://github.com/open-telemetry/opentelemetry-cpp/blob/61e550eca2bb2b54b2f3a6fe9e5d8f9a8997646d/exporters/prometheus/include/opentelemetry/exporters/prometheus/exporter_options.h#L30-L31) - `populate_target_info` (inverse semantics; default is `true`) - **Go**: [`config.go`](https://github.com/open-telemetry/opentelemetry-go/blob/bfbfdf9d5329a8694487f0add096a615f0086a98/exporters/prometheus/config.go#L93-L100) - `WithoutTargetInfo` (default is `false`) - **Java**: [`PrometheusHttpServerBuilder.java`](https://github.com/open-telemetry/opentelemetry-java/blob/0e92b93a02eeed2b4210f7b9afe852aa7cf76b0d/exporters/prometheus/src/main/java/io/opentelemetry/exporter/prometheus/PrometheusHttpServerBuilder.java#L89-L92)...
SDK implementations that have a translation strategy config option: - **Go**: [`config.go`](https://github.com/open-telemetry/opentelemetry-go/blob/59ac46c03a4dc7af17116e878f23726e8eabc728/exporters/prometheus/config.go#L103-L125) - `WithTranslationStrategy` takes `TranslationStrategyOption` from [`github.com/prometheus/otlptranslator`](https://github.com/prometheus/otlptranslator/blob/ab718f015b85ef4213f23a52ccbeec2bd826ce78/strategy.go#L19-L60), which covers the four specification strategies. SDK implementations that do not have...
SDK implementations that support `Accept`-based content negotiation: - **.NET**: [`PrometheusExporterMiddleware.cs`](https://github.com/open-telemetry/opentelemetry-dotnet/blob/368decf66088ef271620d1473210322684c67372/src/OpenTelemetry.Exporter.Prometheus.AspNetCore/PrometheusExporterMiddleware.cs), [`PrometheusHttpListener.cs`](https://github.com/open-telemetry/opentelemetry-dotnet/blob/368decf66088ef271620d1473210322684c67372/src/OpenTelemetry.Exporter.Prometheus.HttpListener/PrometheusHttpListener.cs) - chooses OpenMetrics text or Prometheus text (`text/plain` with `version=0.0.4`) based on `Accept`. - **Go**: [`exporter.go`](https://github.com/open-telemetry/opentelemetry-go/blob/bfbfdf9d5329a8694487f0add096a615f0086a98/exporters/prometheus/exporter.go) - uses [prometheus/client_golang](https://github.com/prometheus/client_golang),...
SDK implementations that have a resource attributes config option: - **Go**: [`config.go`](https://github.com/open-telemetry/opentelemetry-go/blob/59ac46c03a4dc7af17116e878f23726e8eabc728/exporters/prometheus/config.go#L189-L198) - `WithResourceAsConstantLabels` takes an `attribute.Filter` (by default, no resource attributes are added to metric series). The filter selects...
SDK implementations that expose at most one target info metric: - **C++**: [`exporter_utils.cc`](https://github.com/open-telemetry/opentelemetry-cpp/blob/61e550eca2bb2b54b2f3a6fe9e5d8f9a8997646d/exporters/prometheus/src/exporter_utils.cc#L602-L631) - `SetTarget(...)` is called once before metric iteration and emits a single `target` info metric family per...
Go is the only SDK that implements the `translation_strategy` config option (see https://github.com/open-telemetry/opentelemetry-specification/issues/4988#issuecomment-4223526413). [`WithTranslationStrategy`](https://github.com/open-telemetry/opentelemetry-go/blob/99d4d7b2f8a698085b82584bbfd51b8494639a34/exporters/prometheus/config.go#L103-L126) records the strategy on the exporter config. The exporter builds [`otlptranslator`](https://github.com/prometheus/otlptranslator) metric and label namers from...
SDK implementations that convert OTel metrics to Prometheus metrics: - **C++**: [`collector.cc`](https://github.com/open-telemetry/opentelemetry-cpp/blob/main/exporters/prometheus/src/collector.cc), [`exporter_utils.cc`](https://github.com/open-telemetry/opentelemetry-cpp/blob/main/exporters/prometheus/src/exporter_utils.cc) - **.NET**: [`PrometheusCollectionManager.cs`](https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusCollectionManager.cs), [`PrometheusSerializer.cs`](https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusSerializer.cs), [`PrometheusSerializerExt.cs`](https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/src/OpenTelemetry.Exporter.Prometheus.HttpListener/Internal/PrometheusSerializerExt.cs) - **Go**: [`exporter.go`](https://github.com/open-telemetry/opentelemetry-go/blob/main/exporters/prometheus/exporter.go) - **Java**: [`Otel2PrometheusConverter.java`](https://github.com/open-telemetry/opentelemetry-java/blob/main/exporters/prometheus/src/main/java/io/opentelemetry/exporter/prometheus/Otel2PrometheusConverter.java) - **JavaScript**: [`PrometheusSerializer.ts`](https://github.com/open-telemetry/opentelemetry-js/blob/main/experimental/packages/opentelemetry-exporter-prometheus/src/PrometheusSerializer.ts) - **Python**: [`prometheus/__init__.py`](https://github.com/open-telemetry/opentelemetry-python/blob/main/exporter/opentelemetry-exporter-prometheus/src/opentelemetry/exporter/prometheus/__init__.py),...