Skip to content

chore: merge develop into main - #468

Merged
wtobis-splunk merged 13 commits into
mainfrom
develop
Oct 21, 2026
Merged

wtobis-splunk merged 13 commits into
mainfrom
develop

Conversation

@wtobis-splunk

Copy link
Copy Markdown
Contributor

No description provided.

## Why

`StanzaObservabilityRecorder` previously called OpenTelemetry
`force_flush()` on the modular input’s thread. A slow or unavailable
OTLP collector could therefore delay TA processing whenever the recorder
exited its `with` block.

## What changed

- Schedule explicit metric flushes on one daemon worker per
observability service. Repeated requests are coalesced.
- Replace OpenTelemetry’s synchronous exit hook for solnlib-created
providers with one process-wide shutdown handler and a shared
five-second grace period.
- Drain a pending flush before shutdown, including when periodic export
is disabled. Periodic export remains unchanged.

## Compatibility and trade-offs

The public `flush()` signatures are unchanged, but returning now means
the export was *scheduled*, not completed. `timeout_millis` limits the
background attempt; it is not a caller-side wait. The last metrics may
be lost if the exit grace period expires.

Fork handling remains limited: the child gets a new worker, but an OTel
provider inherited during an in-flight export may retain a locked
reader. Recreating the provider after `fork()` is outside this PR.

## Testing

- 173 observability tests passed on Python 3.9.19.
- Tests cover blocked exports, request coalescing, the shared exit
deadline, pending flush at shutdown, and a fork smoke test.
- Python 3.13 runtime validation remains for CI.
# [8.2.0-beta.1](v8.1.1...v8.2.0-beta.1) (2026-10-21)

### Bug Fixes

* ADDON-91243 change telemetry flush to async ([#467](#467)) ([3e538df](3e538df))
* drain pending metric flush before shutdown ([4555232](4555232))
* harden async observability lifecycle ([9b3a2a5](9b3a2a5))

### Features

* add async metric flush worker ([5326914](5326914))
* bound metric shutdown across services ([280fba9](280fba9))
* make solnlib observability flush nonblocking ([c6897eb](c6897eb))
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T13:00:22.783312Z 3e538df PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Comment thread solnlib/__init__.py
@wtobis-splunk
wtobis-splunk merged commit c131853 into main Oct 21, 2026
29 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants