-
Notifications
You must be signed in to change notification settings - Fork 111
Add Open Telemetry instrumentation #526
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
Open
atheriel
wants to merge
40
commits into
main
Choose a base branch
from
otel
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+571
−33
Open
Changes from 25 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
6429125
Add Open Telemetry instrumentation.
atheriel 93077ef
Merge branch 'main' into otel
schloerke a710ce2
`usethis::use_tidy_description()`
schloerke bf51c67
Updates to the latest promises ospans
schloerke 2d5245a
Simplify internal api
schloerke 397052e
Use `promises::local_ospan_promise_domain()`
schloerke 833c308
Import otel as promises does. Remove suggestions on otelsdk and add t…
schloerke 324c955
Use new promises main branch (PR was merged)
schloerke a923a1a
Copy in tracer retrieval from httr2
schloerke bc00cc2
Fix runtime error with otelsdk where `spn$end(status="auto")` would fail
schloerke e59614b
Pass through the parent chat ospan to the generator methods. Add ospa…
schloerke 5e48b66
Apply suggestions from code review
schloerke 0de30c1
Merge branch 'main' into otel
schloerke 5735bc6
Use existing `is_testing()` method
schloerke 30ee794
Use more descriptive otel tracer function for ellmer
schloerke 443439e
Use `defer` standalone
schloerke 74fa875
Apply similar logic to remove withr for `local_tempfile()` for main code
schloerke 688edd6
`activate_and_cleanup_ospan()` -> `setup_otel_span()`
schloerke eeb0b84
Update fn names. Move some setup code inside method
schloerke e8cb35c
Bump dev version to 0.3.2.9001
schloerke 0e19f88
Apply suggestion from @shikokuchuo
schloerke 98e3ff6
Remove `coro::` namespace for `await_each`
schloerke 4457769
Merge branch 'main' into otel
schloerke e92322e
Use local_tempfile() helper method
schloerke 0c91f8f
Remove otelsdk remote and make a Suggests
schloerke c377dd6
Refactor otel span argument naming for clarity
schloerke a7852bc
Update chat-tools.R
schloerke 8080dc6
Update otel tracer caching implementation after #848; add early retur…
shikokuchuo 302e752
Merge branch 'main' into otel
shikokuchuo 37e9ca2
Corrections for 8080dc6
shikokuchuo 01f20e6
Remove superfluous promise domain setups
shikokuchuo 913270d
Refactor agent span activation in OpenTelemetry tracing
schloerke 2dc46ba
Relax span count assertions in otel tracing tests
schloerke 2d78a24
Refactor otel spans tests to be relative instead of comparing against…
shikokuchuo 7f653bb
Simplify span kinds and test
shikokuchuo c03dfde
Move otel to suggests
shikokuchuo ecf85fd
Add `span_recording()` helper
shikokuchuo 34d8093
Merge branch 'main' into otel
shikokuchuo 128a7b5
Merge branch 'main' into otel
shikokuchuo 35659d1
Merge branch 'main' into otel
shikokuchuo 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| Package: ellmer | ||
| Title: Chat with Large Language Models | ||
| Version: 0.3.2.9000 | ||
| Version: 0.3.2.9001 | ||
| Authors@R: c( | ||
| person("Hadley", "Wickham", , "[email protected]", role = c("aut", "cre"), | ||
| comment = c(ORCID = "0000-0003-4757-117X")), | ||
|
|
@@ -30,7 +30,8 @@ Imports: | |
| jsonlite, | ||
| later (>= 1.4.0), | ||
| lifecycle, | ||
| promises (>= 1.3.1), | ||
| otel (>= 0.2.0), | ||
| promises (>= 1.5.0), | ||
| R6, | ||
| rlang (>= 1.1.0), | ||
| S7 (>= 0.2.0), | ||
|
|
@@ -45,6 +46,7 @@ Suggests: | |
| knitr, | ||
| magick, | ||
| openssl, | ||
| otelsdk, | ||
| paws.common, | ||
| png, | ||
| rmarkdown, | ||
|
|
@@ -81,11 +83,13 @@ Collate: | |
| 'content-pdf.R' | ||
| 'content-replay.R' | ||
| 'httr2.R' | ||
| 'import-standalone-defer.R' | ||
| 'import-standalone-obj-type.R' | ||
| 'import-standalone-purrr.R' | ||
| 'import-standalone-types-check.R' | ||
| 'interpolate.R' | ||
| 'live.R' | ||
| 'otel.R' | ||
| 'parallel-chat.R' | ||
| 'params.R' | ||
| 'provider-anthropic-files.R' | ||
|
|
||
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
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.
Uh oh!
There was an error while loading. Please reload this page.