Skip to content

Commit 8f4fba1

Browse files
committed
Set default value for the name of a streamed span
1 parent 38121a2 commit 8f4fba1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sentry_sdk/integrations/gcp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def sentry_func(
120120
sentry_sdk.traces.continue_trace(headers)
121121
Scope.set_custom_sampling_context(sampling_context)
122122
span_ctx = sentry_sdk.traces.start_span(
123-
name=environ.get("FUNCTION_NAME", ""),
123+
name=environ.get("FUNCTION_NAME", "<unknown GCP function>"),
124124
parent_span=None,
125125
attributes={
126126
"sentry.op": OP.FUNCTION_GCP,

0 commit comments

Comments
 (0)