Skip to content

Commit 287da48

Browse files
committed
chore: skip the langfuse project span check
1 parent cd234ad commit 287da48

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

langfuse/_client/span_processor.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,6 @@ def on_start(self, span: Span, parent_context: Optional[Context] = None) -> None
134134
span: The span that is starting
135135
parent_context: The context when the span was created (optional)
136136
"""
137-
if self._is_langfuse_span(span) and not self._is_langfuse_project_span(span):
138-
langfuse_logger.debug(
139-
f"Security: Span rejected - belongs to project '{span.instrumentation_scope.attributes.get('public_key') if span.instrumentation_scope and span.instrumentation_scope.attributes else None}' but processor is for '{self.public_key}'. "
140-
f"This prevents cross-project data leakage in multi-project environments."
141-
)
142-
return super().on_start(span, parent_context)
143-
144137
# Get the current context (use parent_context if available, otherwise current)
145138
current_context = parent_context or context_api.get_current()
146139

0 commit comments

Comments
 (0)