Skip to content

Commit 6738f30

Browse files
committed
remove pipeline stuff for now
1 parent e720dec commit 6738f30

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

sentry_sdk/client.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
from sentry_sdk.scope import Scope
7070
from sentry_sdk.session import Session
7171
from sentry_sdk.spotlight import SpotlightClient
72-
from sentry_sdk.traces import StreamedSpan
7372
from sentry_sdk.transport import Transport, Item
7473
from sentry_sdk._log_batcher import LogBatcher
7574
from sentry_sdk._metrics_batcher import MetricsBatcher
@@ -228,9 +227,6 @@ def _capture_log(self, log: "Log", scope: "Scope") -> None:
228227
def _capture_metric(self, metric: "Metric", scope: "Scope") -> None:
229228
pass
230229

231-
def _capture_span(self, span: "StreamedSpan", scope: "Scope") -> None:
232-
pass
233-
234230
def capture_session(self, *args: "Any", **kwargs: "Any") -> None:
235231
return None
236232

@@ -924,7 +920,7 @@ def capture_event(
924920

925921
def _capture_telemetry(
926922
self,
927-
telemetry: "Optional[Union[Log, Metric, StreamedSpan]]",
923+
telemetry: "Optional[Union[Log, Metric]]",
928924
ty: str,
929925
scope: "Scope",
930926
) -> None:
@@ -951,8 +947,6 @@ def _capture_telemetry(
951947
batcher = self.log_batcher
952948
elif ty == "metric":
953949
batcher = self.metrics_batcher # type: ignore
954-
elif ty == "span":
955-
batcher = self.span_batcher # type: ignore
956950

957951
if batcher is not None:
958952
batcher.add(telemetry) # type: ignore
@@ -963,9 +957,6 @@ def _capture_log(self, log: "Optional[Log]", scope: "Scope") -> None:
963957
def _capture_metric(self, metric: "Optional[Metric]", scope: "Scope") -> None:
964958
self._capture_telemetry(metric, "metric", scope)
965959

966-
def _capture_span(self, span: "Optional[StreamedSpan]", scope: "Scope") -> None:
967-
self._capture_telemetry(span, "span", scope)
968-
969960
def capture_session(
970961
self,
971962
session: "Session",

0 commit comments

Comments
 (0)