Skip to content

Commit 71968be

Browse files
authored
feat: Enable OpenTelemetry support (#7132)
1 parent 723d77c commit 71968be

File tree

3 files changed

+303
-19
lines changed

3 files changed

+303
-19
lines changed

api/app/settings/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@
11261126
CORS_ALLOW_CREDENTIALS = env.bool("CORS_ALLOW_CREDENTIALS", COOKIE_AUTH_ENABLED)
11271127
FLAGSMITH_CORS_EXTRA_ALLOW_HEADERS = env.list(
11281128
"FLAGSMITH_CORS_EXTRA_ALLOW_HEADERS",
1129-
default=["sentry-trace"],
1129+
default=["sentry-trace", "traceparent", "tracestate", "baggage"],
11301130
)
11311131
CORS_ALLOWED_ORIGINS = env.list(
11321132
"CORS_ALLOWED_ORIGINS",

api/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import boto3
88
import openfeature.api as openfeature_api
9+
import opentelemetry.trace # noqa: F401 (force-init before pyfakefs can intercept)
910
import pytest
1011
from common.environments.permissions import (
1112
MANAGE_IDENTITIES,

0 commit comments

Comments
 (0)