You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support AppSignals metrics transport protocol configuration. (#70)
*Issue #, if available:*
This PR is matching the [aws-otel-java-instrumentation PR
](aws-observability/aws-otel-java-instrumentation#752)
to support both http and grpc protocol according the environment
variables.
Testing:
I test the change on EC2 instance using the CWAgent receiving the
metrics and traces by running on two sets of environment variables:
1. http:
```
export OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=http/protobuf
export OTEL_EXPORTER_OTLP_METRICS_PROTOCOL=http/protobuf
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:4316/v1/traces
export OTEL_AWS_APP_SIGNALS_EXPORTER_ENDPOINT=http://localhost:4316/v1/metrics
```
2. grpc:
```
export OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=grpc
export OTEL_EXPORTER_OTLP_METRICS_PROTOCOL=grpc
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:4315
export OTEL_AWS_APP_SIGNALS_EXPORTER_ENDPOINT=http://localhost:4315
```
I has been confirmed that both the traces and metrics are received
successfully, logs and service map shows up in the console:


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
0 commit comments