Skip to content

Commit 29265cb

Browse files
committed
feat(python): enable flag evaluation metrics tests
1 parent 71b7b0d commit 29265cb

11 files changed

Lines changed: 61 additions & 46 deletions

File tree

manifests/java.yml

Lines changed: 37 additions & 43 deletions
Large diffs are not rendered by default.

manifests/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ manifest:
10821082
tests/ffe/test_dynamic_evaluation.py::Test_FFE_RC_Down_From_Start: v4.0.0
10831083
tests/ffe/test_dynamic_evaluation.py::Test_FFE_RC_Unavailable: flaky (FFL-1622)
10841084
tests/ffe/test_exposures.py: v4.2.0-dev
1085-
tests/ffe/test_flag_eval_metrics.py: missing_feature
1085+
tests/ffe/test_flag_eval_metrics.py: v4.7.0-dev
10861086
tests/integration_frameworks/llm/anthropic/test_anthropic_apm.py::TestAnthropicApmMessages: v3.16.0
10871087
tests/integration_frameworks/llm/anthropic/test_anthropic_llmobs.py::TestAnthropicLlmObsMessages: v3.16.0
10881088
tests/integration_frameworks/llm/anthropic/test_anthropic_llmobs.py::TestAnthropicLlmObsMessages::test_create: missing_feature # ephemeral cache TTL metrics not yet released

utils/_context/_scenarios/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ class _Scenarios:
544544
"DD_EXPERIMENTAL_FLAGGING_PROVIDER_ENABLED": "true",
545545
"DD_REMOTE_CONFIG_POLL_INTERVAL_SECONDS": "0.2",
546546
"DD_METRICS_OTEL_ENABLED": "true",
547+
"OTEL_EXPORTER_OTLP_METRICS_PROTOCOL": "http/protobuf",
547548
"OTEL_EXPORTER_OTLP_METRICS_ENDPOINT": "http://agent:4318/v1/metrics",
548549
},
549550
agent_interface_timeout=30,

utils/build/docker/python/django-poc.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ WORKDIR /app
66
COPY utils/build/docker/python/install_ddtrace.sh binaries* /binaries/
77
RUN /binaries/install_ddtrace.sh
88

9+
# Install OTel OTLP exporter for FFE metrics
10+
RUN pip install opentelemetry-exporter-otlp-proto-http==1.40.0
11+
912
COPY utils/build/docker/python/django /app
1013
COPY utils/build/docker/python/iast.py /app/iast.py
1114

utils/build/docker/python/django-py3.13.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ WORKDIR /app
55
COPY utils/build/docker/python/install_ddtrace.sh binaries* /binaries/
66
RUN /binaries/install_ddtrace.sh
77

8+
# Install OTel OTLP exporter for FFE metrics
9+
RUN pip install opentelemetry-exporter-otlp-proto-http==1.40.0
10+
811
COPY utils/build/docker/python/django /app
912
COPY utils/build/docker/python/iast.py /app/iast.py
1013

utils/build/docker/python/fastapi.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ WORKDIR /app
55
COPY utils/build/docker/python/install_ddtrace.sh binaries* /binaries/
66
RUN /binaries/install_ddtrace.sh
77

8+
# Install OTel OTLP exporter for FFE metrics
9+
RUN pip install opentelemetry-exporter-otlp-proto-http==1.40.0
10+
811
COPY utils/build/docker/python/fastapi/app.sh /app/app.sh
912
COPY utils/build/docker/python/fastapi/main.py /app/main.py
1013
COPY utils/build/docker/python/fastapi/log_conf.yaml /app/log_conf.yaml

utils/build/docker/python/flask-poc.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ WORKDIR /app
55
COPY utils/build/docker/python/install_ddtrace.sh binaries* /binaries/
66
RUN /binaries/install_ddtrace.sh
77

8+
# Install OTel OTLP exporter for FFE metrics
9+
RUN pip install opentelemetry-exporter-otlp-proto-http==1.40.0
10+
811
COPY utils/build/docker/python/flask /app
912
COPY utils/build/docker/python/iast.py /app/iast.py
1013

utils/build/docker/python/python3.12.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ WORKDIR /app
55
COPY utils/build/docker/python/install_ddtrace.sh binaries* /binaries/
66
RUN /binaries/install_ddtrace.sh
77

8+
# Install OTel OTLP exporter for FFE metrics
9+
RUN pip install opentelemetry-exporter-otlp-proto-http==1.40.0
10+
811
COPY utils/build/docker/python/django /app
912
COPY utils/build/docker/python/iast.py /app/iast.py
1013

utils/build/docker/python/tornado.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ ENV DD_REMOTECONFIG_POLL_SECONDS=1
88
COPY utils/build/docker/python/install_ddtrace.sh binaries* /binaries/
99
RUN /binaries/install_ddtrace.sh
1010

11+
# Install OTel OTLP exporter for FFE metrics
12+
RUN pip install opentelemetry-exporter-otlp-proto-http==1.40.0
13+
1114
COPY utils/build/docker/python/tornado/app.sh /app/app.sh
1215
COPY utils/build/docker/python/tornado/main.py /app/main.py
1316
COPY utils/build/docker/python/iast.py /app/iast.py

utils/build/docker/python/uds-flask.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ WORKDIR /app
55
COPY utils/build/docker/python/install_ddtrace.sh binaries* /binaries/
66
RUN /binaries/install_ddtrace.sh
77

8+
# Install OTel OTLP exporter for FFE metrics
9+
RUN pip install opentelemetry-exporter-otlp-proto-http==1.40.0
10+
811
COPY utils/build/docker/python/flask /app
912
COPY utils/build/docker/python/iast.py /app/iast.py
1013

0 commit comments

Comments
 (0)