Skip to content

Conversation

@MikeGoldsmith
Copy link

@MikeGoldsmith MikeGoldsmith commented Feb 4, 2026

Updates the tox command to set the correct dependencies and add an allowed_external. Running tox -e generate-config-from-jsonschema is now successful and regenerates the models file at opentelemetry-sdk/src/opentelemetry/sdk/_configuration/models.py.

I also added the use-union-operator = true suggested by @xrmx in the upstream PR, and then regenerated the models file.

Changes:

  • update tox.ini's command to set deps and allowlist_external
  • set use-union-operator in pyproject's command definition
  • regenerate models file with updated settings
  • merge upstream main into this branch
  • add changelog entry

emdneto and others added 15 commits December 29, 2025 11:14
Added notes on contrib.yml workflow behavior and its limitations during release preparations.
…open-telemetry#4799)

* Initial commit

* Make changes

* Make changes to  approach

* Make more changes

* windows is failing but not sure why

* Fix bug on windows..

* Commit changes

* Update opentelemetry-sdk/src/opentelemetry/sdk/_shared_internal/__init__.py

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>

* Respond to comment

* remove duplicate filter from propagate false logger

* clarify comment

* make changes

* Apply suggestion from @xrmx

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>

* Update opentelemetry-sdk/tests/logs/test_export.py

* merge

---------

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
…SOURCE_DETECTORS` to `*` (open-telemetry#4819)

* Allow loading all resource detectors by setting `OTEL_EXPERIMENTAL_RESOURCE_DETECTORS` to `all`

* Add changelog

* Use `*` instead of `all`
* Siwtch recursion suppression to use ContextVar

* Add changelog fix typecheck

* Update changelog

* minor change

* Fix typecheck
…emetry#4869)

Fixes open-telemetry#4868

The Prometheus exporter was generating duplicate HELP and TYPE
declarations for metrics with varying label sets, violating the
Prometheus format specification and causing rejection by Prometheus
Pushgateway with the error: "second HELP line for metric name."

Changes:
- Modified metric family ID to exclude label keys, using only metric
  name, description, and unit
- Implemented two-pass processing: first pass collects all unique
  label keys across data points, second pass builds label values with
  empty strings for missing labels
- Ensured single metric family per metric type with consolidated
  label keys
- Updated test expectations to verify single HELP/TYPE declaration
  with proper empty string handling for missing labels

This aligns with the Go implementation approach and ensures
compatibility with Prometheus Pushgateway and other strict validators.

Co-authored-by: Aaron Abbott <aaronabbott@google.com>
* feat(http): add error handling for exporting

* feat(http_exporter): allow to run retry loop on connection errors

* feat(http): change error types that are caught

* refactor(http): introduce variables to unify logging

* feat(http_exporter): only retry on connection error

* test(http_exporter): add test case for connection errors while exporting

* refactor(http): simplify if statements

* docs(changelog): add changes

* fix(http_exporter): use correct class after rebase

* docs(changelog): update changelog

* refactor(http_exporter): add empty space in logs

* docs(tests): remove comments

* refactor(tests): simplify tests

* Update CHANGELOG.md

* Update exporter/opentelemetry-exporter-otlp-proto-http/src/opentelemetry/exporter/otlp/proto/http/_log_exporter/__init__.py

* Apply suggestions from code review

---------

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
* test-util: allow filtering metrics by scope

* Apply suggestions from code review

---------

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
)

* Fix: Reinitialize gRPC channel on UNAVAILABLE error (Fixes open-telemetry#4517)

* fix: address PR review comments for gRPC reconnection

* refactor(exporter): simplify reconnection logic and address review comments
- Remove aggressive gRPC keepalive and retry settings to rely on defaults.
- Fix compression precedence logic to correctly handle NoCompression (0).
- Refactor channel initialization to be stateless (remove _channel_reconnection_enabled).- Update documentation to refer to 'OTLP-compatible receiver'

* fix: remove extra blank line in docstring

* fix(exporter): address typecheck errors and add changelog entry

---------

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
@MikeGoldsmith MikeGoldsmith changed the title Codeboten/generate config model from schema fix code-generation command and regenerate models Feb 4, 2026
@codeboten codeboten merged commit 43f2c09 into codeboten:codeboten/generate-config-model-from-schema Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.