Sourced from @opentelemetry/api's releases.
api/v1.10.0
1.10.0
:rocket: Features
- feat(api): integrate the Logs API into
@opentelemetry/api#4862@hectorhdzg- feat(api): add imperative
context.attach()for setting context across callback boundaries thatwith()cannot wrap. #6845@pichlermarc
attach()returns aTokenwhosedispose()method restores the previous context. Usetoken.dispose()to detach.attachis an optional method on theContextManagerinterface; when the active context manager does not implement it,context.attach()logs a warning and returns a no-op token.- feat(api): add
AnyValuetype (of typeunknown) and extendAttributestype values to useAnyValue#6780@trentm
- This is part of supporting OTEP 4485.
- This is a breaking change for SDK implementations, in that they may need to support more attribute types for any APIs that accept
AttributesorAnyValue. Implementors should refer to the OTEP 4485 link above for "MUST / SHOULD" requirements for complex attributes handling. See also the attributes-handling utilities provided by@opentelemetry/coreto help. For example,cleanSimpleAttributes()can be used to limit user-provided attributes to the set of value types supported in earlier@opentelemetry/apiversions.- This change is typically not a breaking change for users of
@opentelemetry/api. There is one possible breaking case: If a TypeScript user was using theAttributestype in their own code and using TypeScript Narrowing to reduce an attribute value to an expected type (example here). It is expected that this usage should be rare and, likely, limited to SDK implementations, if at all. (If this impacted your code, please let us know.)- Note for users of attributes: Simple attributes SHOULD be used whenever possible. Instrumentations SHOULD assume that backends do not index individual properties of complex attributes, that querying or aggregating on such properties is inefficient and complicated, and that reporting complex attributes carries higher performance overhead.
:bug: Bug Fixes
- fix(api): cap tracestate list-members and total length in the deprecated
TraceState.set()so it stays in step withTraceStatefrom@opentelemetry/core#6964@Zuhef- fix: resolve the ESM build through the
defaultexport condition instead ofimport, so a resolver that activates neitherimportnorrequirestill finds an entry point #7132@overbalance:books: Documentation
- docs(api): complete
@sinceannotations for the public API #7023@nabeelamjadsheikh
- Adds the three missing exported-type annotations and the member-level annotations for methods and properties introduced after their enclosing type.
- Corrects
Attributes,AttributeValueandTracerOptionsfrom1.3.0to1.1.0; all three were already importable in 1.1.0 via wildcard re-export.:house: Internal
- build: migrate the package build from
tsctotsdown, emitting dual CJS/ESM output from a singledist/directory #6293@overbalance
- The public entry points are unchanged:
@opentelemetry/apiand@opentelemetry/api/experimental. This package already declared anexportsmap, so deep imports such as@opentelemetry/api/build/src/...were rejected before this change and continue to be.- The emitted files moved out of
build/src(CJS),build/esmandbuild/esnext(ESM) intodist/, using.cjs/.mjsextensions with matching.d.cts/.d.mtsdeclarations. The non-standardesnextcondition has been dropped in favour of the standardimport/requireconditions.- perf(api): add getGlobal fast-path #6956
@legendecas- chore: remove the redundant
modulefield frompackage.json; bundlers resolve the ESM build through theexportsmap #7130@overbalance
Sourced from @opentelemetry/api's changelog.
1.10.0
:rocket: (Enhancement)
- feat(resource): create sync resource with some attributes that resolve asynchronously #3460
@samimusallam- feat: collect host id for non-cloud environments #3575
@mwear- feat (api-logs): separate Events API into its own package 3550
@martinkuba- feat(sdk-metrics): apply binary search in histogram recording #3539
@legendecas- perf(propagator-jaeger): improve deserializeSpanContext performance #3541
@doochik- feat: support TraceState in SamplingResult #3530
@raphael-theriault-swi- feat(sdk-trace-base): add diagnostic logging when spans are dropped #3610
@neoeinstein- feat: add unit to view instrument selection criteria #3647
@jlabatut- feat(tracing): expose dropped counts for attributes, events and links on span #3576
@mohitk05:bug: (Bug Fix)
- fix(core): added falsy check to make otel core work with browser where webpack config had process as false or null #3613
@ravindra-dyte- fix(instrumentation-http): include query params in http.target #3646
@kobi-co:books: (Refine Doc)
- chore: update http example #3651
@JamieDanielson:house: (Internal)
- chore(exporter-jaeger): deprecate jaeger exporter #3585
@pichlermarc- fix(sdk-metrics): fix flaky LastValueAggregator test by using fake timer #3587
@pichlermarc- fix(test): fix failing tests by preventing source-map generation #3642
@pichlermarc
56e6b1b
chore: Release API 1.4.1, SDK 1.10.0, Experimental 0.36.0 (#3654)ecb5ebe
fix: Minor typing issues for web sandbox (#3660)48ecf22
feat(sdk-trace-base): add dropped attributes and events count on span
(#3576)95bf6fc
fix(build): add example/http to ignore list in
update-ts-configs (#3657)3a2ca58
feat: add unit to view instrument selection criteria (#3647)ebc8575
chore(jeager-exporter): deprecate jaeger exporter (#3585)2f715bd
feat: allow to add attributes from grpc metadata in the patched server
(#3589)cbbdfd3
fix(sdk-node): update instrumentations once MeterProvider is initialized
(#3624)4a4484a
chore: update http example (#3651)494efff
fix(otlp-exporter-base): fix changelog for merged retry pr (#3650)316b7f2
chore(release): 6.2.138106395
chore: bump packages724ba24
refactor: preserve underlying error causesb112a5e
chore: bump packages2a3a525
chore(deps-dev): bump workerd in /tap/workerd8f540d8
chore(deps): bump the actions group with 3 updates8d6c02b
chore(deps-dev): bump electron from 44.0.0 to 44.4.5 in
/tap/electron55c959f
ci: use gh run rerun for retries5b00c64
ci: address zizmor findings and bump shared workflows1761d7f
chore: bump packages