Update opentelemetry-python monorepo to v1.45.2 #11
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
StarkZarn/meshtastic-prometheus-exporter!11
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/opentelemetry-python-monorepo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
==1.35.0→==1.45.2==1.35.0→==1.45.2Release Notes
open-telemetry/opentelemetry-python (opentelemetry-api)
v1.45.2Compare Source
Added
opentelemetry-sdk,opentelemetry-configuration,opentelemetry-exporter-prometheus: enforce metric cardinality limits(default 2000) with the
otel.metric.overflowattribute, configurablethrough
View(aggregation_cardinality_limit=...), readercardinality_limitsand declarative configuration(#5809)
Fixed
opentelemetry-api: limittraceparentheader length to 512 characters inTraceContextTextMapPropagatorduring extraction(#5818)
v1.45.1Compare Source
Fixed
opentelemetry-api: makeAnyValueandAttributeValueexplicit typealiases
(#5703)
opentelemetry-sdk: fix thread leak bug in resource initialization logic forlong running resource detectors
(#5706)
opentelemetry-exporter-otlp-proto-http: restorerequestsas the defaultHTTP transport so proxy environment variables such as
HTTPS_PROXYarehonored again
(#5714)
opentelemetry-api: fix quadratic time parsing of thetracestateheaderand discard
tracestateheaders longer than 8192 characters(#5746)
v1.45.0Compare Source
Added
opentelemetry-exporter-prometheus: add support to configure Resourceattributes as metric labels
(#5122)
(#5202)
opentelemetry-api,opentelemetry-sdk: add support for extended attributevalues everywhere.
(#5266)
opentelemetry-sdk: wire the top-levellog_levelfield in declarativeconfiguration — when set, maps the OTel
SeverityNumbervalue to a Pythonlogging level and applies it to the
opentelemetrylogger so SDK internaldiagnostics respect the configured severity.
(#5351)
opentelemetry-sdk: add the new stableAlwaysRecordSampler(#5354)
opentelemetry-configuration,opentelemetry-sdk: wire top-levelattribute_limitsinto per-signal providers via declarative config; addlog_record_limitssupport toLoggerProvider(#5365)
opentelemetry-exporter-otlp-json-http: add OTLP JSON HTTP exporter package(#5374)
opentelemetry-api,opentelemetry-sdk: addenabled()support to theLogger API, SDK, and
LogRecordProcessorto let instrumentation skipexpensive work when logging is disabled
(#5380)
opentelemetry-exporter-otlp-json-file: add OTLP JSON file Docker tests(#5412)
opentelemetry-configuration: wire the experimentaltracer_configurator/development,meter_configurator/developmentandlogger_configurator/developmentfields intocreate_tracer_provider,create_meter_providerandcreate_logger_provider, soper-instrumentation-scope
enabledoverrides declared in the config file are applied to the provider(previously these fields were parsed but silently discarded). The logger
minimum_severity/trace_basedfields are not supported by the Python SDKand
are ignored with a warning.
(#5418)
docs/examples: add example on how to manually setup the SDK to get SDKmetrics
(#5449)
opentelemetry-docker-tests: add Prometheus exporter docker tests(#5457)
opentelemetry-sdk: count records dropped after shutdown onotel.sdk.processor.{span,log}.processedwitherror.type=already_shutdown(batch span/log and simple log processors), which the semantic conventions
define as a valid value for this metric.
(#5509)
opentelemetry-semantic-conventions: update semantic conventions to v1.44.0(#5511)
opentelemetry-sdk: addhost.idto the host resource detector(#5653)
opentelemetry-test-utils: addCapturingSamplerto record what samplersreceive in instrumentation tests
(#5681)
Changed
PIE(flake8-pie) ruff rule and fix all violations(#5150)
opentelemetry.util.types.AttributeValuetype in packageopentelemetry-apiis being expanded to includeNone, heterogeneoussequences of primitive types (and nested sequences) as opposed to only
homogeneous primitive sequences, and Mappings of strings to any primitive
types or sequences/mappings (which themselves must only contain primitive
types or sequences/mappings validated the same way).
If a
bytestype is set as an attribute value in the SDK, it will no longerbe utf-8 decoded to a string, instead it will be passed along as is in
accordance with the OTEL spec, since
bytesis a valid type in the OTLPproto.
(#5266)
opentelemetry-exporter-otlp-proto-http: add amax_request_sizeargumentto the OTLP HTTP exporters (traces, logs, metrics); serialized requests
larger than the limit are dropped before sending, measured before
compression. Defaults to 64 MiB (enabled); set to 0 to disable. Mirrors
opentelemetry-go#8157.
(#5369)
opentelemetry-api: subclasses ofLoggerneed to implement theenabledmethod(#5380)
opentelemetry-exporter-otlp-proto-http: refactor to use sharedopentelemetry-exporter-otlp-common and opentelemetry-exporter-http-transport
packages and switch default HTTP backend to urllib3
(#5389)
opentelemetry-sdk: unify logging force_flush timeout defaults to 30000ms(#5438)
opentelemetry-python: enable Ruff default ruleset and fix auto-fixable lintissues
(#5491)
opentelemetry-sdk:SimpleSpanProcessornow drops spans ended aftershutdown()instead of passing them to the exporter, and counts them onotel.sdk.processor.span.processedwitherror.type=already_shutdown.(#5512)
(#5518)
opentelemetry-exporter-otlp-proto-http: clarify that theendpoint=kwargrequires the full signal path
(#5633)
opentelemetry-sdk: fix typos in SpanLimits docstring(#5658)
Fixed
opentelemetry-configuration: perform environment variable substitution onscalar values after parsing the configuration file, so
${VAR}referencesinside comments and mapping keys are no longer substituted and undefined
references in comments no longer abort loading
(#5407)
opentelemetry-configuration: declarative config environment variablesubstitution now replaces an unset variable that has no default with an empty
value instead of raising an error, per the configuration spec.
Resource attributes whose value resolves to null (an unset
${VAR}with nodefault) are skipped with a warning instead of being inserted as a null
value.
(#5408)
: addopentelemetry-configurationandopentelemetry-proto-json` to the package to release(#5425)
opentelemetry-sdk: fixViewinstrument-name matching so a view configuredwith an instrument's real (mixed-case) name is applied; matching is now
case-insensitive and platform-independent instead of relying on
fnmatch'sOS-dependent case handling
(#5430)
opentelemetry-sdk: fix missing f-prefix in exponential histogram errormessages
(#5434)
opentelemetry-configuration: resolve false-positive warning logs for newerschema minor version
(#5436)
opentelemetry-sdk: make methods onFixedSizeExemplarReservoirABCthreadsafe
(#5437)
opentelemetry-propagator-jaeger: fix typing issues and enable pyrighttypechecking for the package
opentelemetry-propagator-jaeger: skipuberctx-baggage headers with anempty value on extraction instead of raising
TypeError(#5440)
opentelemetry-sdk: fixTypeErrorwhen instantiating a_BaseConfiguratorsubclass whose
__init__takes arguments(#5441)
opentelemetry-sdk: fixTypeErrorinos.fork()when aBatchProcessoror
PeriodicExportingMetricReaderis garbage collected(#5453)
opentelemetry-configuration: a declarative config key present with an empty(null) value on an object-typed node (e.g.
always_on:, a- service:detector, or a metric
console:exporter) is now treated the same as anexplicit empty config (
always_on: {}) instead of failing type dispatch orsilently skipping the node. Both
dict-typed nodes and dataclassesconstructible with no arguments are covered.
(#5454)
opentelemetry-api: fix copy-pasted log message inSpanContext.__delattr__(#5455)
opentelemetry-sdk: reject views withExponentialBucketHistogramAggregationfor asynchronous instruments insteadof silently producing no data
(#5461)
opentelemetry-sdk: fill every bucket ofSimpleFixedSizeExemplarReservoirbefore random sampling
(#5462)
opentelemetry-sdk: Import code_attributes from stable semconv package(#5465)
opentelemetry-sdk: for both the simple and batch span/log processors, countotel.sdk.processor.{span,log}.processedwhen the processor submits recordsto the exporter instead of after export completes, and stop stamping exporter
failures onto this metric as
error.type(#5472)
opentelemetry-sdk: fix misleading instrument name validation error message(name max length is 255, not 63).
(#5513)
opentelemetry-configuration: add missing process executable name to defaultservice name when available in resource attributes
(#5534)
opentelemetry-sdk: fix values forprocess.executable.nameandprocess.executable.pathto match semantic conventions.(#5535)
opentelemetry-api: fixTraceState.updatedropping all entries when addinga new key at the 32-key limit
(#5543)
opentelemetry-sdk: boundget_aggregated_resources()wait to the timeout(#5545)
opentelemetry-sdk: don't readprocess.executable.nameresource attributewhen building default
service.name(#5547)
opentelemetry-propagator-jaeger: enforce baggage limits on bothuberctx-extract and inject, borrowing the same limits (180 entries, 4096 bytes per
entry, 8192 bytes total) the package's core
W3CBaggagePropagatoralreadyuses, so neither an inbound carrier nor an in-process baggage map can produce
unbounded work or headers.
(#5556)
opentelemetry-sdk: keep metric attribute values that Python considers equalbut the data model does not, such as
True,1and1.0, in separatemetric streams
(#5573)
opentelemetry-sdk: keepResourcehashable and serialisable when anattribute value is
bytes, instead of raisingTypeErrorfrom every OTLPencoder
(#5577)
opentelemetry-sdk: fix instrumentation scope name matching in the tracer,meter and logger configurators so it is case-sensitive on every platform
instead of relying on
fnmatch's OS-dependent case handling(#5584)
opentelemetry-sdk: fixTracerProvider()raisingValueErrorwhenOTEL_TRACES_SAMPLER_ARGis a syntactically valid number outside the[0.0, 1.0]range, instead of logging a warning and falling back like other invalidvalues
(#5594)
opentelemetry-sdk: retain values from synchronous instruments usinglast-value aggregation across cumulative collections
(#5637)
opentelemetry-api: Added guard for negative value on max_value_len(#5647)
opentelemetry-sdk: fix overriding of the service.instance.id which has beenpopulated from the user provided values through the resource detectors
(#5660)
opentelemetry-exporter-otlp-proto-grpc: Fix incorrect default port for OTLPgRPC exporter self-metrics
(#5668)
opentelemetry-api: update W3CBaggagePropagator to properly handlewhitespace
(#5680)
v1.44.0Compare Source
Added
opentelemetry-docker-tests: Refactor Docker tests to properly validatecontents of exported telemetry
(#5220)
opentelemetry-exporter-otlp-common: add shared package for common OTLPutilities
(#5252)
opentelemetry-sdk: addMissingDependencyErrorexception for declarativeconfiguration and use it for missing optional dependency errors
(#5265)
opentelemetry-sdk: Add ability to refresh process dependent Resourceattributes
(#5280)
opentelemetry-sdk: addforce_flushmethod toLogRecordExporterABC(#5294)
opentelemetry-sdk: Make it possible to limit the size of stored spans inInMemorySpanExporter
(#5296)
opentelemetry-sdk: add log record limits environment variablesOTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMITandOTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT(#5300)
opentelemetry-sdk: add support for file exporter with declarative config(#5311)
opentelemetry-sdk: exposeSynchronousMultiLogRecordProcessorandConcurrentMultiLogRecordProcessorpublicly(#5327)
opentelemetry-sdk: point the declarative configuration package README atthe shared language support status
matrix
in the
opentelemetry-configurationrepo, so Python conformance status livesalongside the other languages instead of being duplicated per language SDK.
(#5347)
opentelemetry-sdk: document that Python-implementation extensions(
OTEL_PYTHON_*variables) are bypassed whenOTEL_CONFIG_FILEis set. Theenv-var initialisation path is skipped entirely in favour of the declarative
file; honouring these alongside a config file is tracked as a follow-up.
(#5353)
opentelemetry-sdk: wire id_generator from declarative configuration toTracerProvider
(#5363)
opentelemetry-sdk: Add support for activating instrumentors from adeclarative configuration file via the
instrumentation/development.pythonsection. Instrumentors can declare a
configurationattribute to have theiroptions validated through the same type-coercion pipeline used for SDK
component configuration.
(#5372)
opentelemetry-sdk: addrecord_min_maxoption toExponentialBucketHistogramAggregation, matching the option alreadyavailable on
ExplicitBucketHistogramAggregationand required by thespecification
(#5377)
Changed
(#5329)
opentelemetry-instrumentation-logging(#5344)
opentelemetry-sdk: bump declarative configuration schema to v1.1.0(#5345)
opentelemetry-configuration: declarative configuration moves fromopentelemetry.sdk._configurationinto the new publicopentelemetry-configurationpackage (opentelemetry.configurationnamespace), published experimentally.
opentelemetry-sdk[file-configuration]continues to work as an alias that installs
opentelemetry-configurationalongside the SDK.
(#5356)
opentelemetry-api: remove env carrier environment snapshot caching, you nowhave to pass explicitly the mapping where to get the environment variables
from as the
EnvironmentGetter.getfirst argument.(#5366)
opentelemetry-semantic-conventions: bump to 1.42.0(#5410)
opentelemetry-semantic-conventions: bump to 1.43.0(#5413)
Removed
opentelemetry-api,opentelemetry-sdk: Removed deprecated Events API/SDK.Use
LogRecordwith theevent_namefield set instead.(#5293)
Fixed
opentelemetry-sdk: OptimizeLogRecordmemory inBatchLogRecordProcessorby clearing the
Contextobject before buffering. This is a potentiallybreaking change for custom log exporters that access
contextfrom theexported
ReadableLogRecord, as the context will now be an emptyContext()instead of the original.
(#4977)
opentelemetry-sdk: drop non-finite measurements (NaN and Inf) at theinstrument level to prevent permanent aggregation poisoning
(#5336)
opentelemetry-sdk: raiseValueErrorwhenExplicitBucketHistogramAggregationboundaries are not strictly increasingor finite
(#5340)
opentelemetry-sdk:ProcessResourceDetectorno longer collects or emitsprocess.command_argsandprocess.command_lineby default since the valuesare not sanitized and may contain sensitive information. Users who depend
on these resource attributes must pass
include_command_args=True.(#5364)
opentelemetry-exporter-otlp-proto-http: fix the OTLP HTTP metric exporterself-observability metrics over-counting data points when
max_export_batch_sizesplits a batch; each split now reports its owndata-point count instead of the whole-batch count.
(#5370)
opentelemetry-api: Prevent in-place mutation ofContextvia inheriteddictmethods(#5399)
v1.43.0Compare Source
Added
opentelemetry-sdk: addadd_metric_reader/remove_metric_readerpublicAPIs to register / unregister metric readers at runtime.
(#4863)
opentelemetry-exporter-prometheus: add support for configuring metric scopelabels
(#5123)
opentelemetry-exporter-otlp-proto-grpc: Add grpc error details to the logmessage that's written when the grpc call fails.
(#5143)
opentelemetry-exporter-http-transport: add'opentelemetry-exporter-http-transport' package for HTTP exporters
(#5194)
opentelemetry-sdk: Addcomposite/developmentsamplers support todeclarative file configuration
(#5201)
opentelemetry-exporter-otlp-json-file: Add OTLP JSON File exporterimplementation
(#5207)
opentelemetry-sdk: add_resolve_componentshared utility for declarativeconfig plugin loading, reducing boilerplate in exporter factory functions
(#5215)
opentelemetry-sdk: add pull metric reader support to declarative fileconfiguration, including Prometheus metric reader via the
prometheus_developmentconfig field(#5216)
opentelemetry-proto-json: update to use opentelemetry-proto v1.10.0(#5224)
opentelemetry-proto: bump maximum supported protobuf version to 7.x.x(#5251)
opentelemetry-sdk: addServiceInstanceIdResourceDetectorfor populatingservice.instance.id(#5259)
opentelemetry-sdk: declarative config loader now recursively convertsparsed dicts into typed dataclass instances, including nested dataclasses,
lists of dataclasses, and enum values. End-to-end YAML/JSON → SDK
configuration now works via the factory functions.
(#5269)
opentelemetry-sdk: addconfigure_sdk(config)to the declarativeconfiguration API. Single entry point that takes a parsed
OpenTelemetryConfiguration, builds the resource, and applies thetracer/meter/logger providers and propagator globally. Honors the top-level
disabledflag.(#5270)
opentelemetry-sdk: the SDK configurator now honors theOTEL_CONFIG_FILEenvironment variable. When set, the SDK loads and applies the referenced
declarative configuration file (YAML or JSON) in place of the env-var-based
init path.
(#5271)
opentelemetry-sdk: update declarative config to useServiceInstanceIdResourceDetector(#5299)
opentelemetry-exporter-otlp-proto-common,opentelemetry-exporter-otlp-json-common: encoders now always accept null,and encode it as an empty
AnyValuein accordance with the spec.(#5305)
opentelemetry-sdk: validate the declarative configfile_formatversion —reject an unsupported major version and warn on a newer minor version, per
the configuration spec versioning rules
(#5315)
opentelemetry-exporter-http-transport: enable entry-point loading oftransport implementations
(#5320)
Changed
opentelemetry-sdk: introduce experimental entry points for OpAMP agentintegration
(#4646)
opentelemetry-api: conditionally import entrypoints foropentelemetry_contextonly if theOTEL_PYTHON_CONTEXTenv variable isdefined, return
ContextVarsRuntimeContextotherwise(#5144)
opentelemetry-sdk: rename "known/unknown" to "built-in/user-defined"terminology in declarative config component loading code
(#5214)
opentelemetry-proto: regenerate protobuf code from opentelemetry-protov1.10.0
(#5223)
opentelemetry-sdk: remove unnecessarycopyin Span creation(#5272)
(#5274)
opentelemetry-sdk: inline the method_clean_attribute_value(#5275)
typing.Unionandtyping.Optionalwith|.(#5277)
(#5287)
(#5288)
opentelemetry-api: updateEnvironmentGetterto ignore non-normalizedenvironment variable names
(#5289)
(#5297)
(#5298)
(#5326)
opentelemetry-api: normalize empty environment propagation names to_inEnvironmentSetterandEnvironmentGetter(#5328)
Fixed
.rstfiles to Sphinx documentation build for SDK logs,propagators, and exporter submodules.
(#5017)
setting the random trace id bit depending on the available trace id
generator.
(#5241)
opentelemetry-api: fix SelectableGroups deprecation warning(#5250)
opentelemetry-sdk: makeSynchronousMeasurementConsumer.consume_measurementlock free to avoiddeadlocks
(#5321)
v1.42.1Compare Source
Fixed
setting the random trace id bit depending on the available trace id
generator.
(#5241)
v1.42.0Compare Source
Added
opentelemetry-api,opentelemetry-sdk: add support for 'random-trace-id'flags in W3C traceparent header trace flags. Implementations of
IdGeneratorthat do randomly generate the 56 least significant bits, should also
implement a
is_trace_id_randommethods that returnsTrue.(#4854)
(#4908)
opentelemetry-exporter-otlp-proto-grpc: make retryable gRPC error codesconfigurable for gRPC exporters
(#4917)
opentelemetry-sdk: Addcreate_logger_provider/configure_logger_providerto declarative file configuration, enabling LoggerProvider instantiation from
config files without reading env vars
(#4990)
opentelemetry-exporter-otlp-json-common: add'opentelemetry-exporter-otlp-json-common' package for OTLP JSON exporters
(#4996)
opentelemetry-sdk: Addserviceresource detector support to declarativefile configuration via
detection_development.detectors[].service(#5003)
opentelemetry-docker-tests: add docker-tests coverage ofopentelemetry-exporter-otlp-proto-grpcandopentelemetry-exporter-otlp-proto-httpmetrics export(#5030)
registrykeyword argument toPrometheusMetricReaderto allow passinga custom Prometheus registry
(#5055)
(#5088)
opentelemetry-sdk: addload_entry_pointshared utility to declarativefile configuration for loading plugins via entry points; refactor propagator
loading to use it
(#5093)
opentelemetry-sdk: add sampler plugin loading to declarative fileconfiguration via the
opentelemetry_samplerentry point group, matching thespec's PluginComponentProvider mechanism
(#5095)
opentelemetry-sdk: add propagator plugin loading to declarative fileconfiguration via the
opentelemetry_propagatorentry point group, matchingthe spec's PluginComponentProvider mechanism
(#5098)
opentelemetry-sdk: add exporter plugin loading to declarative fileconfiguration for all three signals (traces, metrics, logs) via the
opentelemetry_*_exporterentry point groups, matching the spec'sPluginComponentProvider mechanism
(#5128)
opentelemetry-sdk: add generic resource detector plugin loading todeclarative file configuration via the
opentelemetry_resource_detectorentry point group, matching the spec's PluginComponentProvider mechanism
(#5129)
opentelemetry-sdk: addadditional_propertiessupport to generated configmodels via custom
datamodel-codegentemplate, enabling plugin/customcomponent names to flow through typed dataclasses
(#5131)
OTEL_PYTHON_SDK_INTERNAL_METRICS_ENABLEDenvironment variable.(#5151)
Changed
opentelemetry-semantic-conventions: useX | Yunion annotation(#5096)
opentelemetry-api: updateEnvironmentGetterandEnvironmentSettertouse normalized environment variable names
(#5119)
UPruff rule(#5133)
opentelemetry-sdk: only load entrypoints for resource detectors if they areconfigured via
OTEL_EXPERIMENTAL_RESOURCE_DETECTORS(#5145)
scripts/tracecontext-integration-test.sh(#5149)
(#5177)
opentelemetry-semantic-conventions: Bump semantic conventions to 1.41.1,this changes the metrics name of
K8S_CONTAINER_CPU_LIMIT_UTILIZATIONandK8S_CONTAINER_CPU_REQUEST_UTILIZATION.(#5200)
Removed
opentelemetry-api: remove third-party importlib-metadata in favor ofstandard library since Python >= 3.10 is now required
(#3234)
(#5076)
Fixed
opentelemetry-sdk: Allow declarative OTLP HTTP exporters to mapcompression: deflateinstead of rejecting it as unsupported.(#5075)
create_tracer()docstring(#5077)
opentelemetry-sdk: FixProcessResourceDetectorto usesys.orig_argvsothat
process.command,process.command_line, andprocess.command_argsreflect the original invocation for
python -m <module>runs (wheresys.argv[0]is rewritten to the module path)(#5083)
opentelemetry-sdk: fix YAML structure injection via environment variablesubstitution in declarative file configuration; values containing newlines
are now emitted as quoted YAML scalars per spec requirement
(#5091)
opentelemetry-sdk: Fix mutable attributes reference in metrics, attributespassed to instrument
add/recordare now copied so that subsequentmutations do not affect recorded data points
(#5106)
opentelemetry-sdk: make resource detector ordering deterministic(#5120)
detectorsparameter ofget_aggregated_resources(#5135)
opentelemetry-api: Enforce W3C Baggage size limits on outbound propagationin
W3CBaggagePropagator.inject(). Previously only inbound extractionenforced limits; now inject also caps entries at 180, individual pairs at
4096 bytes, and total header at 8192 bytes per the W3C Baggage spec. The
extract path max_pairs limit now counts all size-valid entries rather than
only successfully parsed ones.
(#5163)
opentelemetry-sdk: fix multi-processorforce_flushskipping remainingprocessors when one returns
None(#5179)
opentelemetry-test-utils: fix weaver live check hanging when weaver logoutput fills the pipe buffer
(#5208)
v1.41.1: Version 1.41.1/0.62b1Compare Source
This is a patch release on the previous 1.41.0/0.62b0 release, fixing the issue(s) below.
v1.41.0Compare Source
opentelemetry-sdk: Addhostresource detector support to declarative file configuration viadetection_development.detectors[].host(#5002)
opentelemetry-sdk: Addcontainerresource detector support to declarative file configuration viadetection_development.detectors[].container, using entry point loading of theopentelemetry-resource-detector-containeridcontrib package(#5004)
opentelemetry-sdk: Addcreate_tracer_provider/configure_tracer_providerto declarative file configuration, enabling TracerProvider instantiation from config files without reading env vars(#4985)
(#5019)
opentelemetry-sdk: FixAttributeErrorinExplicitBucketHistogramAggregationwhen applied to non-Histogram instruments without explicit boundaries(#5034)
BatchLogRecordProcessordefaultschedule_delay_millisfrom 5000ms to 1000ms to comply with the OTel specification. Note: logs may be exported 5x more frequently by default (e.g. for users who don't explicitly set theOTEL_BLRP_SCHEDULE_DELAYenv var).(#4998)
opentelemetry-sdk: Addprocessresource detector support to declarative file configuration viadetection_development.detectors[].process(#5001)
opentelemetry-sdk: Add shared_parse_headershelper for declarative config OTLP exporters(#5021)
opentelemetry-api: Replace a broad exception in attribute cleaning tests to satisfy pylint in thelint-opentelemetry-apiCI jobopentelemetry-sdk: Addcreate_meter_provider/configure_meter_providerto declarative file configuration, enabling MeterProvider instantiation from config files without reading env vars(#4987)
opentelemetry-sdk: Addcreate_resourceandcreate_propagator/configure_propagatorto declarative file configuration, enabling Resource and propagator instantiation from config files without reading env vars(#4979)
opentelemetry-sdk: Map PythonCRITICALlog level to OTelFATALseverity text per the specification(#4984)
opentelemetry-sdk: Add file configuration support with YAML/JSON loading, environment variable substitution, and schema validation against the vendored OTel config JSON schema(#4898)
getting-startedandtracecontextjobs caused by GitHub git CDN SHA propagation lag by installing contrib packages from the already-checked-out local copy instead of a second git clone(#4958)
opentelemetry-sdk: fix type annotations onMetricReaderand related types(#4938)
opentelemetry-sdk: implement log creation metric(#4935)
opentelemetry-sdk: implement metric reader metrics(#4970)
opentelemetry-sdk: implement processor metrics(#5012)
opentelemetry-sdk: upgrade vendored OTel configuration schema from v1.0.0-rc.3 to v1.0.0(#4965)
opentelemetry-sdk: implement exporter metrics(#4976)
(#4978)
(#4973)
opentelemetry-exporter-prometheus: Fix metric name prefix(#4895)
opentelemetry-api,opentelemetry-sdk: Add deepcopy support forBoundedAttributesandBoundedList(#4934)
opentelemetry-proto-json,opentelemetry-codegen-json: Implement custom protoc plugin to generate OTLP JSON class definitions(#4910)
max_export_batch_sizeto OTLP HTTP metrics exporter(#4576)
opentelemetry-sdk: Implement experimental Meter configurator(#4966)
opentelemetry-exporter-otlp-proto-http: use consistent protobuf for export request(#5015)
opentelemetry-sdk: cache TracerConfig into the tracer, this changes an internal interface. Only one Tracer with the same instrumentation scope will be created(#5007)
max_export_batch_sizeto use realexport(#5036)
opentelemetry-sdk: Implement experimental Logger configurator(#4980)
v1.40.0Compare Source
opentelemetry-sdk: deprecateLoggingHandlerin favor ofopentelemetry-instrumentation-logging, seeopentelemetry-instrumentation-loggingdocumentation(#4919)
opentelemetry-sdk: Clarify log processor error handling expectations in documentation(#4915)
(#4941)
(#4926)
opentelemetry-sdk: Drop unused Jaeger exporter environment variables (exporter removed in 1.22.0)(#4918)
opentelemetry-sdk: Clarify timeout units in environment variable documentation(#4906)
opentelemetry-exporter-otlp-proto-grpc: Fix re-initialization of gRPC channel on UNAVAILABLE error(#4825)
opentelemetry-exporter-prometheus: Fix duplicate HELP/TYPE declarations for metrics with different label sets(#4868)
OTEL_EXPERIMENTAL_RESOURCE_DETECTORSto*(#4819)
opentelemetry-sdk: Fix the type hint of the_metrics_dataproperty to allowNone(#4837).
(#4840)
(#4798)
(#4847)
(#4806)
SimpleLogRecordProcessor.on_emit,(#4799) and (#4867).
(#4880)
(#4609)
(#4882)
(#4862)
opentelemetry-exporter-otlp-proto-http: fix retry logic and error handling for connection failures in trace, metric, and log exporters(#4709)
opentelemetry-sdk: avoid RuntimeError during iteration of view instrument match dictionary in MetricReaderStorage.collect()(#4891)
(#4861)
opentelemetry-sdk: Fix instrument creation race condition(#4913)
(#4914)
opentelemetry-sdk: automatically generate configuration models using OTel config JSON schema(#4879)
v1.39.1: Version 1.39.1/0.60b1Compare Source
This is a patch release on the previous 1.39.0/0.60b0 release, fixing the issue(s) below.
v1.39.0Compare Source
opentelemetry-api: Convert objects of any type other than AnyValue in attributes to string to be exportable(#4808)
docs: Added sqlcommenter example
(#4734)
build: bump ruff to 0.14.1
(#4782)
Add
opentelemetry-exporter-credential-provider-gcpas an optional dependency toopentelemetry-exporter-otlp-proto-grpcand
opentelemetry-exporter-otlp-proto-http(#4760)
feat: implement on ending in span processor
(#4775)
semantic-conventions: Bump to 1.38.0
(#4791)
[BREAKING] Remove LogData and extend SDK LogRecord to have instrumentation scope
(#4676)
[BREAKING] Rename several classes from Log to LogRecord
(#4647)
Migration Guide:
LogDatahas been removed. Users should update their code as follows:For Log Exporters: Change from
Sequence[LogData]toSequence[ReadableLogRecord]For Log Processors: Use
ReadWriteLogRecordfor processing,ReadableLogRecordfor exportingAccessing log data: Use the same attributes on
ReadableLogRecord/ReadWriteLogRecordlog_record.log_record- The API LogRecord (contains body, severity, attributes, etc.)log_record.resource- The Resourcelog_record.instrumentation_scope- The InstrumentationScope (now included, was in LogData before)log_record.limits- The LogRecordLimitsMark the Events API/SDK as deprecated. The Logs API/SDK should be used instead, an event is now a
LogRecordwith theevent_namefield set(#4654).
Fix type checking for built-in metric exporters
(#4820)
v1.38.0Compare Source
rstcheckto pre-commit to stop introducing invalid RST(#4755)
(#4737)
(#4771)
v1.37.0Compare Source
(#4714)
OTEL_PYTHON_EXPORTER_OTLP_{HTTP/GRPC}_{METRICS/TRACES/LOGS}_CREDENTIAL_PROVIDERthat can be used toinject a
requests.Sessionorgrpc.ChannelCredentialsobject into OTLP exporters created during auto instrumentation #4689.logger's logs on the export logs path that might otherwise endlessly log or cause a recursion depth exceeded issue in cases where logging itself results in an exception.(#4695).
(#4728)
(#4634)
(#4731)
(#4677)
importlib_metadata.entry_points(#4735)
(#4741)
v1.36.0Compare Source
(#4485)
the OTLP
LogHandlerremains attached to the root logger. Fix a bug thatcan cause a deadlock to occur over
logging._lockin some cases (#4636).timeout_secin_exportmethod(#4691)
before a retry attempt, and cause them to return failure immediately.
Update BatchSpan/LogRecordProcessors: shutdown will now complete after 30 seconds of trying to finish
exporting any buffered telemetry, instead of continuing to export until all telemetry was exported.
(#4638).
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate CLI.
f6bee498f14939569228Update opentelemetry-python monorepo to v1.39.1to Update opentelemetry-python monorepo to v1.40.04939569228e7398f5e93Update opentelemetry-python monorepo to v1.40.0to Update opentelemetry-python monorepo to v1.41.0e7398f5e93b463f0b580Update opentelemetry-python monorepo to v1.41.0to Update opentelemetry-python monorepo to v1.41.1b463f0b580ec820f7dbcUpdate opentelemetry-python monorepo to v1.41.1to Update opentelemetry-python monorepo to v1.42.0ec820f7dbccb667f920eUpdate opentelemetry-python monorepo to v1.42.0to Update opentelemetry-python monorepo to v1.42.1cb667f920ead0bc347b9Update opentelemetry-python monorepo to v1.42.1to Update opentelemetry-python monorepo to v1.43.0ad0bc347b99baaa8c81cUpdate opentelemetry-python monorepo to v1.43.0to Update opentelemetry-python monorepo to v1.44.09baaa8c81c67cf69749cUpdate opentelemetry-python monorepo to v1.44.0to Update opentelemetry-python monorepo to v1.45.067cf69749ca65c24b5d0Update opentelemetry-python monorepo to v1.45.0to Update opentelemetry-python monorepo to v1.45.1a65c24b5d0a4c258399dUpdate opentelemetry-python monorepo to v1.45.1to Update opentelemetry-python monorepo to v1.45.2View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.