Skip to content

Commit 0ddcff2

Browse files
authored
feat(js-loader): Expose hasLogsAndMetrics in serializer (#107345)
follow up to #106959
1 parent 6433b55 commit 0ddcff2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/sentry/api/serializers/models/project_key.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class DynamicSDKLoaderOptions(TypedDict):
4242
hasPerformance: bool
4343
hasDebug: bool
4444
hasFeedback: bool
45+
hasLogsAndMetrics: bool
4546

4647

4748
class ProjectKeySerializerResponse(TypedDict):
@@ -116,6 +117,9 @@ def serialize(
116117
"hasFeedback": get_dynamic_sdk_loader_option(
117118
obj, DynamicSdkLoaderOption.HAS_FEEDBACK
118119
),
120+
"hasLogsAndMetrics": get_dynamic_sdk_loader_option(
121+
obj, DynamicSdkLoaderOption.HAS_LOGS_AND_METRICS
122+
),
119123
},
120124
}
121125

src/sentry/apidocs/examples/project_examples.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"hasPerformance": True,
3535
"hasDebug": True,
3636
"hasFeedback": False,
37+
"hasLogsAndMetrics": False,
3738
},
3839
}
3940

0 commit comments

Comments
 (0)