release: 0.11.8#386
Merged
Merged
Conversation
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> Co-authored-by: Declan Brady <declan.brady@scale.com> Co-authored-by: Michael Chou <michael.chou@scale.com>
…ts adapter (#375) Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…test + debugpy) (#379)
…nc + temporal) (#377) Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> Co-authored-by: Max Parke <max.parke@scale.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Co-authored-by: Declan Brady <declan.brady@scale.com> Co-authored-by: Michael Chou <michael.chou@scale.com> Co-authored-by: Daniel Miller <daniel.miller@scale.com> Co-authored-by: Matteo Librizzi <matteo.librizzi@scale.com>
…into-next-2 # Conflicts: # src/agentex/lib/core/tracing/span_queue.py # tests/lib/core/tracing/test_span_queue.py
chore: back-merge main into next (merge commit to clear release PR #382)
Add OpenTelemetry metrics for async span queue processing and SGP export: queue depth, batch lag, drain duration, shutdown flush timing, and export success/failure counters with bounded HTTP status labels. Introduce AGENTEX_TRACING_METRICS=0|false|no|off kill switch to disable SDK-side recording without code changes. Linear: SGPINF-1863
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0bae058 to
5f639e7
Compare
Contributor
Author
Release version edited manuallyThe Pull Request version has been manually set to If you instead want to use the version number |
5f639e7 to
0aa5b0a
Compare
….7-into-next # Conflicts: # CHANGELOG.md # src/agentex/lib/core/tracing/span_queue.py
chore: back-merge release 0.11.7 into next
0aa5b0a to
5a4bd70
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
smoreinis
approved these changes
Jun 1, 2026
Contributor
Author
|
🤖 Release is at https://github.com/scaleapi/scale-agentex-python/releases/tag/v0.11.8 🌻 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Automated Release PR
0.11.8 (2026-06-01)
Full Changelog: v0.11.7...v0.11.8
Features
This pull request is managed by Stainless's GitHub App.
The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.
For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.
🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions
Greptile Summary
This release (0.11.8) ships two features: a new Temporal + LangGraph agent template/example, and OTel span queue + export telemetry instrumentation.
temporal-langgraph) and a matching tutorial example. The template includes human-in-the-loop interrupt handling via Temporal signals, live introspection queries, and per-turn SGP tracing (correctly guarded bySGP_API_KEY/SGP_ACCOUNT_ID). A newemit_langgraph_messagesADK helper converts LangGraph message objects to Agentex content types.tracing_metrics.py(instrument definitions) andtracing_metrics_recording.py(best-effort recording helpers) with bounded tag cardinality throughout. The recording path is disabled viaAGENTEX_TRACING_METRICS=0and swallows all exceptions so it is safe on hot paths.enqueued_attimestamps are correctly preserved through re-enqueues for accurate lag histograms.Confidence Score: 5/5
Safe to merge — changes are additive, all tag values are bounded, and the recording helpers are exception-safe on hot paths.
Both features are purely additive. The tracing metrics are well-isolated behind a feature flag and best-effort exception handling. The LangGraph template correctly guards credential-dependent setup. No behavioral regressions are introduced in existing code paths.
src/agentex/lib/core/tracing/span_queue.py — the retry path silently re-enqueues failed items without emitting a failure metric, making transient errors invisible until retries are exhausted.
Important Files Changed
Sequence Diagram
sequenceDiagram participant Caller participant AsyncSpanQueue participant Metrics as tracing_metrics_recording participant Processor as SGPAsyncTracingProcessor participant SGP as SGP HTTP API Caller->>AsyncSpanQueue: enqueue(event_type, span, processors) AsyncSpanQueue->>Metrics: record_span_enqueued(event_type) Note over AsyncSpanQueue: stores enqueued_at timestamp AsyncSpanQueue->>AsyncSpanQueue: drain loop (linger_ms) AsyncSpanQueue->>Metrics: record_batch_coalesced(queue_depth, batch_items) AsyncSpanQueue->>Processor: on_spans_start / on_spans_end Processor->>SGP: upsert_batch(...) alt HTTP success SGP-->>Processor: 200 OK Processor->>Metrics: record_export_success(event_type, span_count, sgp) else Retriable failure (retries remaining) SGP-->>Processor: 5xx / network error Processor-->>AsyncSpanQueue: raises exception Note over AsyncSpanQueue: re-enqueues item, no metric emitted else Retries exhausted AsyncSpanQueue->>Metrics: record_export_failure(exhausted_count) else Permanent non-retriable failure AsyncSpanQueue->>Metrics: record_export_failure(all items) end AsyncSpanQueue->>Metrics: record_batch_phase(phase, size, duration_ms) Note over AsyncSpanQueue: on shutdown timeout AsyncSpanQueue->>Metrics: record_shutdown_timeout(remaining_items)Prompt To Fix All With AI
Reviews (3): Last reviewed commit: "release: 0.11.8" | Re-trigger Greptile