File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
aws-opentelemetry-distro/src/amazon/opentelemetry/distro
contract-tests/images/applications/botocore Expand file tree Collapse file tree 3 files changed +7
-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 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,7 @@ 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 OTLPMetricExporter as OTLPGrpcOTLPMetricExporter
305
305
return OTLPGrpcOTLPMetricExporter (
306
306
endpoint = application_signals_endpoint , preferred_temporality = temporality_dict
307
307
)
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ COPY ./contract-tests/images/applications/botocore /botocore
9
9
ENV PIP_ROOT_USER_ACTION=ignore
10
10
ARG DISTRO
11
11
RUN pip install --upgrade pip && pip install -r requirements.txt && pip install ${DISTRO} --force-reinstall
12
+ RUN pip uninstall opentelemetry-exporter-otlp-proto-grpc -y
13
+ RUN pip uninstall grpcio -y
12
14
RUN opentelemetry-bootstrap -a install
13
15
14
16
# Without `-u`, logs will be buffered and `wait_for_logs` will never return.
You can’t perform that action at this time.
0 commit comments