Bump sentry-sdk from 1.40.5 to 2.10.0
Bumps sentry-sdk from 1.40.5 to 2.10.0.
Release notes
Sourced from sentry-sdk's releases.
2.10.0
Various fixes & improvements
Add client cert and key support to
HttpTransport(#3258) by@grammy-jiangAdd
cert_fileandkey_fileto yoursentry_sdk.initto use a custom client cert and key. Alternatively, the environment variablesCLIENT_CERT_FILEandCLIENT_KEY_FILEcan be used as well.OpenAI: Lazy initialize tiktoken to avoid http at import time (#3287) by
@colin-sentryOpenAI, Langchain: Make tiktoken encoding name configurable + tiktoken usage opt-in (#3289) by
@colin-sentryFixed a bug where having certain packages installed along the Sentry SDK caused an HTTP request to be made to OpenAI infrastructure when the Sentry SDK was initialized. The request was made when the
tiktokenpackage and at least one of theopenaiorlangchainpackages were installed.The request was fetching a
tiktokenencoding in order to correctly measure token usage in some OpenAI and Langchain calls. This behavior is now opt-in. The choice of encoding to use was made configurable as well. To opt in, set thetiktoken_encoding_nameparameter in the OpenAPI or Langchain integration.sentry_sdk.init( integrations=[ OpenAIIntegration(tiktoken_encoding_name="cl100k_base"), LangchainIntegration(tiktoken_encoding_name="cl100k_base"), ], )PyMongo: Send query description as valid JSON (#3291) by
@0CaloriesRemove Python 2 compatibility code (#3284) by
@szokeasaurusrexFix
sentry_sdk.inittype hint (#3283) by@szokeasaurusrexDeprecate
hubinProfile(#3270) by@szokeasaurusrexStop using
Hubininit(#3275) by@szokeasaurusrexDelete
_should_send_default_pii(#3274) by@szokeasaurusrexRemove
Hubusage inconftest(#3273) by@szokeasaurusrexRename debug logging filter (#3260) by
@szokeasaurusrexUpdate
NoOpSpan.finishsignature (#3267) by@szokeasaurusrexRemove
HubinTransaction.finish(#3267) by@szokeasaurusrexRemove Hub from
capture_internal_exceptionlogic (#3264) by@szokeasaurusrexImprove
Scope._capture_internal_exceptiontype hint (#3264) by@szokeasaurusrexCorrect
ExcInfotype (#3266) by@szokeasaurusrexStop using
Hubintracing_utils(#3269) by@szokeasaurusrex2.9.0
Various fixes & improvements
- ref(transport): Improve event data category typing (#3243) by
@szokeasaurusrex- ref(tracing): Improved handling of span status (#3261) by
@antonpirker- test(client): Add tests for dropped span client reports (#3244) by
@szokeasaurusrex- test(transport): Test new client report features (#3244) by
@szokeasaurusrex- feat(tracing): Record lost spans in client reports (#3244) by
@szokeasaurusrex- test(sampling): Replace custom logic with
capture_record_lost_event_calls(#3257) by@szokeasaurusrex- test(transport): Non-order-dependent discarded events assertion (#3255) by
@szokeasaurusrex- test(core): Introduce
capture_record_lost_event_callsfixture (#3254) by@szokeasaurusrex- test(core): Fix non-idempotent test (#3253) by
@szokeasaurusrex
... (truncated)
Changelog
Sourced from sentry-sdk's changelog.
2.10.0
Various fixes & improvements
Add client cert and key support to
HttpTransport(#3258) by@grammy-jiangAdd
cert_fileandkey_fileto yoursentry_sdk.initto use a custom client cert and key. Alternatively, the environment variablesCLIENT_CERT_FILEandCLIENT_KEY_FILEcan be used as well.OpenAI: Lazy initialize tiktoken to avoid http at import time (#3287) by
@colin-sentryOpenAI, Langchain: Make tiktoken encoding name configurable + tiktoken usage opt-in (#3289) by
@colin-sentryFixed a bug where having certain packages installed along the Sentry SDK caused an HTTP request to be made to OpenAI infrastructure when the Sentry SDK was initialized. The request was made when the
tiktokenpackage and at least one of theopenaiorlangchainpackages were installed.The request was fetching a
tiktokenencoding in order to correctly measure token usage in some OpenAI and Langchain calls. This behavior is now opt-in. The choice of encoding to use was made configurable as well. To opt in, set thetiktoken_encoding_nameparameter in the OpenAPI or Langchain integration.sentry_sdk.init( integrations=[ OpenAIIntegration(tiktoken_encoding_name="cl100k_base"), LangchainIntegration(tiktoken_encoding_name="cl100k_base"), ], )PyMongo: Send query description as valid JSON (#3291) by
@0CaloriesRemove Python 2 compatibility code (#3284) by
@szokeasaurusrexFix
sentry_sdk.inittype hint (#3283) by@szokeasaurusrexDeprecate
hubinProfile(#3270) by@szokeasaurusrexStop using
Hubininit(#3275) by@szokeasaurusrexDelete
_should_send_default_pii(#3274) by@szokeasaurusrexRemove
Hubusage inconftest(#3273) by@szokeasaurusrexRename debug logging filter (#3260) by
@szokeasaurusrexUpdate
NoOpSpan.finishsignature (#3267) by@szokeasaurusrexRemove
HubinTransaction.finish(#3267) by@szokeasaurusrexRemove Hub from
capture_internal_exceptionlogic (#3264) by@szokeasaurusrexImprove
Scope._capture_internal_exceptiontype hint (#3264) by@szokeasaurusrexCorrect
ExcInfotype (#3266) by@szokeasaurusrexStop using
Hubintracing_utils(#3269) by@szokeasaurusrex2.9.0
Various fixes & improvements
- ref(transport): Improve event data category typing (#3243) by
@szokeasaurusrex- ref(tracing): Improved handling of span status (#3261) by
@antonpirker- test(client): Add tests for dropped span client reports (#3244) by
@szokeasaurusrex- test(transport): Test new client report features (#3244) by
@szokeasaurusrex- feat(tracing): Record lost spans in client reports (#3244) by
@szokeasaurusrex- test(sampling): Replace custom logic with
capture_record_lost_event_calls(#3257) by@szokeasaurusrex- test(transport): Non-order-dependent discarded events assertion (#3255) by
@szokeasaurusrex
... (truncated)
Commits
b026dbdUpdate CHANGELOG.mdc45640brelease: 2.10.05bad5c6feat(openai): Make tiktoken encoding name configurable + tiktoken usage opt-i...84a2afcfeat(pymongo): Send query description as valid JSON (#3291)301c4b8OpenAI: Lazy initialize tiktoken to avoid http at import time (#3287)ae034abref(consts): Remove Python 2 compatibility code (#3284)8a95971docs(init): Fixsentry_sdk.inittype hint (#3283)4fb51f2Add the client cert and key support to HttpTransport (#3258)06d5da1ref(profiling): DeprecatehubinProfile(#3270)1e82809ref(init): Stop usingHubininit- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)