-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
meta(changelog): Update changelog for 10.22.0 #18016
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
da8397b
Merge pull request #17988 from getsentry/master
github-actions[bot] 718a3ea
feat(core): Truncate request messages in AI integrations (#17921)
RulaKhaled cefcdbc
chore: Upgrade madge to v8 (#17957)
AbhiPrasad 7333e18
feat(core): Instrument LangChain AI (#17955)
RulaKhaled f895f09
fix(node): Pino child loggers (#17934)
timfish 7aa886c
test(hono): Fix hono e2e tests (#18000)
JPeer264 e05acdd
fix(node): Pino capture serialized `err` (#17999)
timfish 39f85b3
feat: Align sentry origin with documentation (#17998)
JPeer264 f75c3ed
feat(node): Pass requestHook and responseHook option to OTel (#17996)
JPeer264 152b9d4
feat(nextjs): Support node runtime on proxy files (#17995)
chargome 43b383c
feat(firebase): Instrument cloud functions for firebase v2 (#17952)
JPeer264 027ab90
fix(nextjs): Remove usage of chalk to avoid runtime errors (#18010)
chargome 7968cd8
fix(react): Don't trim index route `/` when getting pathname (#17985)
s1gr1d 925a4ea
feat(cloudflare,vercel-edge): Add support for LangChain instrumentati…
RulaKhaled 7d050b5
fix(core): Fix wrong async types when instrumenting anthropic's strea…
andreiborza 1513161
chore: Add required size_check for GH Actions (#18009)
JPeer264 0bac0ea
test(react): Add parameterized route tests for `createHashRouter` (#1…
chargome 9c0397c
test(react-router): Fix `getMetaTagTransformer` tests for Vitest comp…
s1gr1d fd26569
fix(react): Patch `spanEnd` for potentially cancelled lazy-route tran…
onurtemizkan ed39e05
meta(changelog): Update changelog for 10.22.0
chargome d7c60b6
Merge remote-tracking branch 'origin/develop' into prepare-release/10…
chargome File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
dev-packages/cloudflare-integration-tests/suites/tracing/langchain/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| import * as Sentry from '@sentry/cloudflare'; | ||
| import { MockChain, MockChatModel, MockTool } from './mocks'; | ||
|
|
||
| interface Env { | ||
| SENTRY_DSN: string; | ||
| } | ||
|
|
||
| export default Sentry.withSentry( | ||
| (env: Env) => ({ | ||
| dsn: env.SENTRY_DSN, | ||
| tracesSampleRate: 1.0, | ||
| }), | ||
| { | ||
| async fetch(_request, _env, _ctx) { | ||
| // Create LangChain callback handler | ||
| const callbackHandler = Sentry.createLangChainCallbackHandler({ | ||
| recordInputs: false, | ||
| recordOutputs: false, | ||
| }); | ||
|
|
||
| // Test 1: Chat model invocation | ||
| const chatModel = new MockChatModel({ | ||
| model: 'claude-3-5-sonnet-20241022', | ||
| temperature: 0.7, | ||
| maxTokens: 100, | ||
| }); | ||
|
|
||
| await chatModel.invoke('Tell me a joke', { | ||
| callbacks: [callbackHandler], | ||
| }); | ||
|
|
||
| // Test 2: Chain invocation | ||
| const chain = new MockChain('my_test_chain'); | ||
| await chain.invoke( | ||
| { input: 'test input' }, | ||
| { | ||
| callbacks: [callbackHandler], | ||
| }, | ||
| ); | ||
|
|
||
| // Test 3: Tool invocation | ||
| const tool = new MockTool('search_tool'); | ||
| await tool.call('search query', { | ||
| callbacks: [callbackHandler], | ||
| }); | ||
|
|
||
| return new Response(JSON.stringify({ success: true })); | ||
| }, | ||
| }, | ||
| ); |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this enabled automatically? I am not sure on this one though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following would be the correct term:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is enabled automatically if tracing is enabled 👍