Skip to content

Commit 02e58d5

Browse files
committed
updating grpc dependency and sample app
1 parent 761a7ed commit 02e58d5

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

sample-apps/python/django_frontend_service/ec2-requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ requests~=2.25.1
66
schedule~=1.2.1
77
opentelemetry-sdk==1.33.1
88
opentelemetry-api==1.33.1
9-
opentelemetry-exporter-otlp-proto-http==1.33.1
9+
opentelemetry-exporter-otlp-proto-http==1.33.1
10+
opentelemetry-exporter-otlp-proto-grpc==1.33.1

sample-apps/python/django_frontend_service/frontend_service_app/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from opentelemetry.sdk.metrics.export import PeriodicExportingMetricReader
1818
from opentelemetry.exporter.otlp.proto.grpc.metric_exporter import OTLPMetricExporter
1919
from opentelemetry.exporter.otlp.proto.http.metric_exporter import OTLPMetricExporter as HTTPMetricExporter
20-
from opentelemetry.sdk.metrics.export import ConsoleMetricsExporter
20+
from opentelemetry.sdk.metrics.export import ConsoleMetricExporter
2121
from opentelemetry.sdk.resources import Resource
2222

2323
logger = logging.getLogger(__name__)
@@ -38,7 +38,7 @@
3838
)
3939

4040
# Initialize Console exporter - Direct output approach (OTEL export 2) Custom export pipeline
41-
custom_console_exporter = ConsoleMetricsExporter()
41+
custom_console_exporter = ConsoleMetricExporter()
4242
custom_console_reader = PeriodicExportingMetricReader(
4343
exporter=custom_console_exporter,
4444
export_interval_millis=5000

validator/src/main/resources/validations/python/ec2/default/metric-validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
httpPath: "aws-sdk-call"
3232
httpMethod: "get"
3333
callingType: "http-with-query"
34-
expectedMetricTemplate: "PYTHON_EC2_DEFAULT_AWS_SDK_CALL_CUSTOM_METRIC"
34+
expectedMetricTemplate: "PYTHON_EC2_DEFAULT_AWS_OTEL_CUSTOM_METRICS"
3535
-
3636
validationType: "cw-metric"
3737
callingType: "none"

0 commit comments

Comments
 (0)