Add cert_file and key_file to your sentry_sdk.init to use a custom client cert and key. Alternatively, the environment variables CLIENT_CERT_FILE and CLIENT_KEY_FILE can be used as well.
OpenAI: Lazy initialize tiktoken to avoid http at import time (#3287) by @colin-sentry
OpenAI, Langchain: Make tiktoken encoding name configurable + tiktoken usage opt-in (#3289) by @colin-sentry
Fixed 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 tiktoken package and at least one of the openai or langchain packages were installed.
The request was fetching a tiktoken encoding 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 the tiktoken_encoding_name parameter in the OpenAPI or Langchain integration.
Add cert_file and key_file to your sentry_sdk.init to use a custom client cert and key. Alternatively, the environment variables CLIENT_CERT_FILE and CLIENT_KEY_FILE can be used as well.
OpenAI: Lazy initialize tiktoken to avoid http at import time (#3287) by @colin-sentry
OpenAI, Langchain: Make tiktoken encoding name configurable + tiktoken usage opt-in (#3289) by @colin-sentry
Fixed 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 tiktoken package and at least one of the openai or langchain packages were installed.
The request was fetching a tiktoken encoding 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 the tiktoken_encoding_name parameter in the OpenAPI or Langchain integration.
Exclusion patterns can now be multi-line, thanks to Daniel Diniz <pull 1807_>. This enables many interesting exclusion use-cases, including those
requested in issues 118 <issue 118_> (entire files), 996 <issue 996_>_ (multiple lines only when appearing together), 1741 <issue 1741_>_ (remainder of a function), and 1803 <issue 1803_>_
(arbitrary sequence of marked lines). See the :ref:multi_line_exclude
section of the docs for more details and examples.
The JSON report now includes per-function and per-class coverage information.
Thanks to Daniel Diniz <pull 1809_>_ for getting the work started. This
closes issue 1793_ and issue 1532_.
Fixed an incorrect calculation of "(no class)" lines in the HTML classes
report.
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 rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the patches group with 6 updates:
2.136.0
2.137.0
2.8.0
2.10.0
1.34.141
1.34.144
1.14.3
1.14.4
7.5.4
7.6.0
0.5.1
0.5.2
Updates
google-api-python-client
from 2.136.0 to 2.137.0Release notes
Sourced from google-api-python-client's releases.
Commits
74de4f0
chore(main): release 2.137.0 (#2436)26e27a9
chore: Update discovery artifacts (#2435)9e30af7
chore: update templated files (#2430)Updates
sentry-sdk
from 2.8.0 to 2.10.0Release notes
Sourced from sentry-sdk's releases.
Changelog
Sourced from sentry-sdk's changelog.
... (truncated)
Commits
b026dbd
Update CHANGELOG.mdc45640b
release: 2.10.05bad5c6
feat(openai): Make tiktoken encoding name configurable + tiktoken usage opt-i...84a2afc
feat(pymongo): Send query description as valid JSON (#3291)301c4b8
OpenAI: Lazy initialize tiktoken to avoid http at import time (#3287)ae034ab
ref(consts): Remove Python 2 compatibility code (#3284)8a95971
docs(init): Fixsentry_sdk.init
type hint (#3283)4fb51f2
Add the client cert and key support to HttpTransport (#3258)06d5da1
ref(profiling): Deprecatehub
inProfile
(#3270)1e82809
ref(init): Stop usingHub
ininit
Updates
boto3
from 1.34.141 to 1.34.144Commits
86c6026
Merge branch 'release-1.34.144'b3936b5
Bumping version to 1.34.144074b8fc
Add changelog entries from botocore5b7ef37
Merge branch 'release-1.34.143'f225e61
Merge branch 'release-1.34.143' into develop5527d5b
Bumping version to 1.34.1435b20752
Add changelog entries from botocoredfbe878
Merge branch 'release-1.34.142'f902982
Merge branch 'release-1.34.142' into developa32f621
Bumping version to 1.34.142Updates
django-storages
from 1.14.3 to 1.14.4Changelog
Sourced from django-storages's changelog.
Commits
b37d53e
Release version 1.14.4 (#1428)a79a304
[sftp] Cleanup duplicated properties (#1426)cd42c17
[dropbox] Remove dead prefix removal code (#1425)855e58d
[ftp] Add FTP_ALLOW_OVERWRITE setting (#1424)fe759bf
[ftp] Conform to BaseStorage interface (#1423)a531947
[general] Write overwriting files in terms of .exists() (#1422)0041eb2
[dropbox] Add support for Python3.12 (#1421)4cd12e0
[sftp] Format times to UTC (#1420)ea25226
[sftp] Add implementations of get_(modified|accessed)_time (#1347)6c494a0
[docs/scaleway] Create Scaleway docs (#1419)Updates
coverage
from 7.5.4 to 7.6.0Changelog
Sourced from coverage's changelog.
Commits
59a3cd7
docs: sample HTML for 7.6.07f27fa7
docs: prep for 7.6.06a268b0
docs: issues closed by the json region reporting5bfe9e7
chore: bump actions/setup-python from 5.1.0 to 5.1.1 (#1814)ab609ef
docs: mention json region reporting in the changes92d96b9
fix: json report needs 'no class' and 'no function' alsoe47e7e7
refactor: move duplicate code into methods3d6be2b
fix: json format should bump for regionsa9992d2
test: add a test of json regions with branches8b89764
test: json expectations should have explicit format numberUpdates
ruff
from 0.5.1 to 0.5.2Release notes
Sourced from ruff's releases.
... (truncated)
Changelog
Sourced from ruff's changelog.
Commits
dc8db1a
Make some amendments to the v0.5.2 changelog (#12319)18c364d
[flake8-bandit
] Support explicit string concatenations in S310 HTTP detecti...7a7c601
Bump version to v0.5.2 (#12316)3bfbbbc
Avoid allocation when validating HTTP and HTTPS prefixes (#12313)1a3ee45
[flake8-bandit
] AvoidS310
violations for HTTP-safe f-strings (#12305)6584886
[refurb
] Makelist-reverse-copy
an unsafe fix (#12303)456d6a2
Considerwith
blocks as single-item branches (#12311)940df67
Omit code frames for fixes with empty ranges (#12304)e58713e
Make cache-write failures non-fatal (#12302)aa5c53b
Remove 'non-obvious' allowance for E721 (#12300)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 rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show