Skip to content

Commit b391602

Browse files
committed
Merge branch 'cmanallen/flags-on-spans' of https://github.com/getsentry/sentry-python into cmanallen/flags-on-spans
2 parents 8075658 + 7ac3a5c commit b391602

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

sentry_sdk/integrations/unleash.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def sentry_is_enabled(self, feature, *args, **kwargs):
3333

3434
# Spans support.
3535
span = sentry_sdk.get_current_span()
36-
print(span)
3736
if span:
3837
span.set_data(f"flag.{feature}", enabled)
3938

tests/integrations/launchdarkly/test_launchdarkly.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,12 @@ def test_launchdarkly_span_integration(
223223
uninstall_integration(LaunchDarklyIntegration.identifier)
224224
if use_global_client:
225225
ldclient.set_config(config)
226-
sentry_init(traces_sample_rate=1, integrations=[LaunchDarklyIntegration()])
226+
sentry_init(traces_sample_rate=1.0, integrations=[LaunchDarklyIntegration()])
227227
client = ldclient.get()
228228
else:
229229
client = LDClient(config=config)
230230
sentry_init(
231-
traces_sample_rate=1,
231+
traces_sample_rate=1.0,
232232
integrations=[LaunchDarklyIntegration(ld_client=client)],
233233
)
234234

tests/integrations/statsig/test_statsig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def test_statsig_span_integration(sentry_init, capture_events, uninstall_integra
189189
uninstall_integration(StatsigIntegration.identifier)
190190

191191
with mock_statsig({"hello": True}):
192-
sentry_init(traces_sample_rate=1, integrations=[StatsigIntegration()])
192+
sentry_init(traces_sample_rate=1.0, integrations=[StatsigIntegration()])
193193
events = capture_events()
194194
user = StatsigUser(user_id="user-id")
195195
with start_transaction(name="hi"):

tests/integrations/unleash/test_unleash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def test_unleash_span_integration(sentry_init, capture_events, uninstall_integra
172172
uninstall_integration(UnleashIntegration.identifier)
173173

174174
with mock_unleash_client():
175-
sentry_init(traces_sample_rate=1, integrations=[UnleashIntegration()])
175+
sentry_init(traces_sample_rate=1.0, integrations=[UnleashIntegration()])
176176
events = capture_events()
177177
client = UnleashClient() # type: ignore[arg-type]
178178
with start_transaction(name="hi"):

0 commit comments

Comments
 (0)