Upgrade sentry-sdk to 0.17.1 (#39495)

This commit is contained in:
Franck Nijhof 2020-08-31 10:28:52 +02:00 committed by GitHub
parent 09efbc569f
commit 97e1be98df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 3 additions and 6 deletions

View File

@ -75,7 +75,6 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
tracing = {} tracing = {}
if entry.options.get(CONF_TRACING): if entry.options.get(CONF_TRACING):
tracing = { tracing = {
"traceparent_v2": True,
"traces_sample_rate": entry.options.get( "traces_sample_rate": entry.options.get(
CONF_TRACING_SAMPLE_RATE, DEFAULT_TRACING_SAMPLE_RATE CONF_TRACING_SAMPLE_RATE, DEFAULT_TRACING_SAMPLE_RATE
), ),

View File

@ -3,6 +3,6 @@
"name": "Sentry", "name": "Sentry",
"config_flow": true, "config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/sentry", "documentation": "https://www.home-assistant.io/integrations/sentry",
"requirements": ["sentry-sdk==0.16.5"], "requirements": ["sentry-sdk==0.17.1"],
"codeowners": ["@dcramer", "@frenck"] "codeowners": ["@dcramer", "@frenck"]
} }

View File

@ -1959,7 +1959,7 @@ sense-hat==2.2.0
sense_energy==0.7.2 sense_energy==0.7.2
# homeassistant.components.sentry # homeassistant.components.sentry
sentry-sdk==0.16.5 sentry-sdk==0.17.1
# homeassistant.components.sharkiq # homeassistant.components.sharkiq
sharkiqpy==0.1.8 sharkiqpy==0.1.8

View File

@ -908,7 +908,7 @@ samsungtvws[websocket]==1.4.0
sense_energy==0.7.2 sense_energy==0.7.2
# homeassistant.components.sentry # homeassistant.components.sentry
sentry-sdk==0.16.5 sentry-sdk==0.17.1
# homeassistant.components.sharkiq # homeassistant.components.sharkiq
sharkiqpy==0.1.8 sharkiqpy==0.1.8

View File

@ -98,11 +98,9 @@ async def test_setup_entry_with_tracing(hass: HomeAssistant) -> None:
"integrations", "integrations",
"release", "release",
"before_send", "before_send",
"traceparent_v2",
"traces_sample_rate", "traces_sample_rate",
} }
assert call_args["traces_sample_rate"] == 0.5 assert call_args["traces_sample_rate"] == 0.5
assert call_args["traceparent_v2"]
@pytest.mark.parametrize( @pytest.mark.parametrize(