File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
aws-opentelemetry-distro/src/amazon/opentelemetry/distro Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main
7
7
- " release/v*"
8
+ pull_request :
9
+ branches :
10
+ - main
11
+
8
12
env :
9
13
AWS_DEFAULT_REGION : us-east-1
10
14
STAGING_ECR_REGISTRY : 637423224110.dkr.ecr.us-east-1.amazonaws.com
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ WORKDIR /operator-build
16
16
ADD aws-opentelemetry-distro/ ./aws-opentelemetry-distro/
17
17
18
18
RUN mkdir workspace && pip install --target workspace ./aws-opentelemetry-distro
19
+ RUN pip uninstall opentelemetry-exporter-otlp-proto-grpc -y
20
+ RUN pip uninstall grpcio -y
19
21
20
22
FROM public.ecr.aws/amazonlinux/amazonlinux:minimal
21
23
Original file line number Diff line number Diff line change 17
17
)
18
18
from amazon .opentelemetry .distro .aws_span_metrics_processor_builder import AwsSpanMetricsProcessorBuilder
19
19
from amazon .opentelemetry .distro .sampler .aws_xray_remote_sampler import AwsXRayRemoteSampler
20
- from opentelemetry .exporter .otlp .proto .grpc .metric_exporter import OTLPMetricExporter as OTLPGrpcOTLPMetricExporter
21
20
from opentelemetry .exporter .otlp .proto .http .metric_exporter import OTLPMetricExporter as OTLPHttpOTLPMetricExporter
22
21
from opentelemetry .sdk ._configuration import (
23
22
_get_exporter_names ,
@@ -302,6 +301,10 @@ def create_exporter(self):
302
301
endpoint = application_signals_endpoint , preferred_temporality = temporality_dict
303
302
)
304
303
if protocol == "grpc" :
304
+ from opentelemetry .exporter .otlp .proto .grpc .metric_exporter import (
305
+ OTLPMetricExporter as OTLPGrpcOTLPMetricExporter ,
306
+ )
307
+
305
308
return OTLPGrpcOTLPMetricExporter (
306
309
endpoint = application_signals_endpoint , preferred_temporality = temporality_dict
307
310
)
You can’t perform that action at this time.
0 commit comments