Skip to content

Commit 697dbac

Browse files
Rachel ChenRachel Chen
authored andcommitted
import
1 parent cf92fb6 commit 697dbac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snuba/web/rpc/v1/endpoint_export_trace_items.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
from snuba.web.rpc import RPCEndpoint
3030
from snuba.web.rpc.common.common import (
3131
BUCKET_COUNT,
32+
attribute_key_to_expression,
3233
base_conditions_and,
3334
process_arrays,
3435
treeify_or_and_conditions,
3536
)
3637
from snuba.web.rpc.common.debug_info import setup_trace_query_settings
3738
from snuba.web.rpc.common.exceptions import BadSnubaRPCRequestException
38-
from snuba.web.rpc.v1.resolvers.R_eap_items.common.common import attribute_key_to_expression
3939

4040
_DEFAULT_PAGE_SIZE = 10_000
4141

@@ -325,7 +325,7 @@ def _convert_rows(rows: Iterable[Dict[str, Any]]) -> ProcessedResults:
325325
ts = row.pop("timestamp")
326326
client_sample_rate = float(1.0 / row.pop("sampling_weight", 1.0))
327327
server_sample_rate = float(1.0 / row.pop("sampling_weight", 1.0))
328-
sampling_factor = row.pop("sampling_factor", 1.0)
328+
sampling_factor = row.pop("sampling_factor", 1.0) # noqa: F841
329329
arrays = row.pop("attributes_array", "{}") or "{}"
330330
booleans = row.pop("attributes_bool", {}) or {}
331331
integers = row.pop("attributes_int", {}) or {}

0 commit comments

Comments
 (0)