Skip to content

Commit d44a724

Browse files
Disable normalization featuregate (#559)
1 parent 2de29bf commit d44a724

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ As a downstream Repo of [opentelemetry-lambda](https://github.com/open-telemetry
77
- Java-Agent layer [**aws-otel-java-agent-<amd64|arm64>-ver-1-24-0**](https://aws-otel.github.io/docs/getting-started/lambda/lambda-java-auto-instr) contains AWS Distro for OpenTelemetry Java Instrumentation `v1.24.0` and ADOT Collector for Lambda `v0.28.0`
88
- Collector layer **aws-otel-collector-<amd64|arm64>-ver-0-74-0** contains ADOT Collector for Lambda `v0.28.0`. Compatible with [.NET](https://aws-otel.github.io/docs/getting-started/lambda/lambda-dotnet) and [Go](https://aws-otel.github.io/docs/getting-started/lambda/lambda-go) runtimes.
99

10+
## Notice: ADOT Collector v0.31.0 Breaking Change
11+
Users of the `prometheusremotewrite` exporter please reference GitHub Issue [Warning: ADOT Collector v0.31.0 breaking change](https://github.com/aws-observability/aws-otel-collector/issues/2043)
12+
for information on an upcoming breaking change.
13+
1014
## Sample Apps
1115
We provide [SAM and Terraform sample applications](sample-apps/) for AWS managed OpenTelemetry Lambda layers. You can play with these samples by the following:
1216
1. Install AWS Cli, AWS SAM, Terraform, and configure AWS credentials correctly.

adot/collector/lambdacomponents/default.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ package lambdacomponents
1818
//github.com/aws-observability/aws-otel-lambda/adot/collector/lambdacomponents
1919

2020
import (
21+
"log"
22+
2123
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsemfexporter"
2224
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsxrayexporter"
2325
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusremotewriteexporter"
@@ -27,6 +29,7 @@ import (
2729
"go.opentelemetry.io/collector/exporter/otlpexporter"
2830
"go.opentelemetry.io/collector/exporter/otlphttpexporter"
2931
"go.opentelemetry.io/collector/extension"
32+
"go.opentelemetry.io/collector/featuregate"
3033
"go.opentelemetry.io/collector/otelcol"
3134
"go.opentelemetry.io/collector/receiver"
3235
"go.opentelemetry.io/collector/receiver/otlpreceiver"
@@ -73,5 +76,13 @@ func Components() (
7376
Exporters: exporters,
7477
}
7578

79+
// TODO: remove after ADOT Collector v0.30.0 is released
80+
if err := featuregate.GlobalRegistry().Set("pkg.translator.prometheus.NormalizeName", false); err != nil {
81+
return otelcol.Factories{}, err
82+
}
83+
log.Printf("attn: users of the prometheusremotewrite exporter please refer to " +
84+
"https://github.com/aws-observability/aws-otel-collector/issues/2043 in regards to an ADOT Collector v0.31.0 " +
85+
"breaking change")
86+
7687
return factories, errs
7788
}

0 commit comments

Comments
 (0)