chore(deps): update dependency @opentelemetry/sdk-metrics to v2 #1281
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.
This PR contains the following updates:
^1.15.0->^2.0.0Release Notes
open-telemetry/opentelemetry-js (@opentelemetry/sdk-metrics)
v2.0.0Compare Source
Summary
^18.19.0 || >=20.6.0. This means that support for Node.js 14 and 16 has been dropped.0.200.0are compatible with this release💥 Breaking Change
parentSpanContextand removeparentSpanIdfromSpanandReadableSpan#5450 @JacksonWeberSpansparentSpanIdwas replaced byparentSpanContext, to migrate to the new property, please replacespan.parentSpanId->span.parentSpanContext?.spanIdtypefield onMetricDescriptor#5291 @chancancodeInstrumentDescriptortype; useMetricDescriptorinstead #5277 @chancancode@opentelemetry/apipeer dependency to 1.9.0 #5254 @chancancodeSpanAttributeswithAttributes#5009 @david-lunaResourceAttributeswithAttributes#5016 @david-lunaViewandAggregationin favor ofViewOptionsandAggregationOption#4931 @pichlermarcnew Spanconstructor in favor ofTracer.startSpanAPI #5048 @david-lunaBasicTracerProvider.addSpanProcessorAPI in favor of constructor options. #5134 @david-lunaresourceproperty private inBasicTracerProviderand removegetActiveSpanProcessorAPI. #5192 @david-lunaIMetricReaderinterface and use it over abstract class #5311MeterProviderOptionsnow provides the more generalIMetricReadertype overMetricReaderMetricReaderin your public interface, consider accepting the more generalIMetricReaderinstead to avoid unintentional breaking changesBasicTracerProvider, the class offered multiple methods to facilitate the creation of exporters and auto-pairing withSpanProcessors.SpanProcessors to the base class constructor when extending_registeredExportershas been removed_getSpanExporterhas been removed_buildExporterFromEnvhas been removedIdGeneratorandRandomIdGenerator#5309 @pichlermarcInstrumentationLibrary#5308 @pichlermarcInstrumentationScopeinsteadInstrumentationLibrarywithInstrumentationScope#5308 @pichlermarcTracer.instrumentationLibrary->Tracer.instrumentationScopeReadableSpan.instrumentationLibrary->ReadableSpan.instrumentationScopeReadableSpanReadableSpan.instrumentationScopeoverReadableSpan.instrumentationLibrary#5308 @pichlermarcReadableSpan.instrumentationScopeoverReadableSpan.instrumentationLibrary#5308 @pichlermarc5.0.4#5145 @david-lunatypescript@<5.0.4typescriptin minor releases. We will only drop support for versions that are older than 2 years.AlwaysOnSamplerhas moved to@opentelemetry/sdk-trace-baseAlwaysOffSamplerhas moved to@opentelemetry/sdk-trace-baseParentBasedSamplerhas moved to@opentelemetry/sdk-trace-baseTraceIdRatioSamplerhas moved to@opentelemetry/sdk-trace-baseattributesobjectDetectedResourceplain objects instead ofnew Resource()BasicTracerProvider#register().OTEL_PROPAGATORSorwindow.OTEL_PROPAGATORSanymore, please pass the propagator toNodeTracerProvider#register()instead.BasicTracerProvider#register()will now fall back to defaults (tracecontextandbaggage)NodeTracerProvider#register().OTEL_PROPAGATORSanymore, please pass the propagator toNodeTracerProvider#register()instead.NodeTracerProvider#register()will now fall back to the defaults (tracecontextandbaggage)NodeSDKfrom@opentelemetry/sdk-node.WebTracerProvider#register().window.OTEL_PROPAGATORSanymore, please pass the propagator toWebTracerProvider#register()instead.WebTracerProvider#register()will now fall back to defaults (tracecontextandbaggage)EXPORTER_FACTORYis not used anymore and has been removedPROPAGATOR_FACTORYis not used anymore and has been removedForceFlushStatewas intended for internal use and has been removedTracerclass was unintentionally exported and has been removedTracer, please useBasicTracerProvider#getTracer(),NodeTracerProvider#getTracer()orWebTracerProvider#getTracer()Tracer, please use theTracertype from@opentelemetry/api^18.19.0 || >=20.6.0. Support for Node.js 14, 16, and early minor versions of 18 and 20 have been dropped. This applies to all packages except the 'api' and 'semantic-conventions' packages. #5395 @trentm@opentelemetry/resourcein favor of@opentelemetry/opentelemetry-browser-detector#5420VERSIONwas an internal constant that was unintentionally exported. It has been removed without replacement.isWrappedhas been removed in favor ofisWrappedfrom@opentelemetry/instrumentationShimWrappedhas been removed in favor ofShimWrappedfrom@opentelemetry/instrumentationhexToBase64was a utility function that is not used by the SDK anymore. It has been removed without replacement.hexToBinarywas a utility function that now internal to@opentelemetry/otlp-tranformer. It has been removed without replacement.baggageUtils.getKeyPariswas an internal utility function that was unintentionally exported. It has been removed without replacement.baggageUtils.serializeKeyPairswas an internal utility function that was unintentionally exported. It has been removed without replacement.baggageUtils.parseKeyPairsIntoRecord,has been removed in favor ofparseKeyPairsIntoRecordbaggageUtils.parsePairKeyValuewas an internal utility function that was unintentionally exported. It has been removed without replacement.TimeOriginLegacyhas been removed without replacement.isAttributeKeywas an internal utility function that was unintentionally exported. It has been removed without replacement.window.OTEL_*is now not supported anymore, please pass configuration options to constructors instead.window.OTEL_*is now not supported anymore, please pass configuration options to constructors instead.Resourceclass toResourceImpland makes it package-privateIResourceinterface toResourceresourceFromAttributesto create aResourcefrom aDetectedAttributesobjectdefaultResourceto create a default resource #5467 @pichlermarcemptyResourceto create an empty resource #5467 @pichlermarcwindow.OTEL_*is now not supported anymoreenvDetectorin browser environments, please migrate to manually creating a resource.ParentBasedAlwaysOnSampleroverAlwaysOnSamplerwhen bogus data is supplied toOTEL_TRACES_SAMPLERgetEnv(),getEnvWithoutDefaults()#5481 @pichlermarcgetEnv()has been replaced bygetStringFromEnv(),getNumberFromEnv(),getBooleanFromEnv(),getStringListFromEnv()getStringFromEnv("OTEL_FOO") ?? "my-default")getEnvWithoutDefaults()has been replaced bygetStringFromEnv(),getNumberFromEnv(),getBooleanFromEnv(),getStringListFromEnv()DEFAULT_ENVIRONMENThas been removed, please inline any defaults from now onENVIRONMENThas been removed without replacementRAW_ENVIRONMENThas been removed without replacementparseEnvironmenthas been removed without replacementBasicTracerProvider#register()to improve tree-shaking #5503 @pichlermarcBasicTracerProvider#register()has been removedpropagation.setGlobalPropagator()from@opentelemetry/apicontext.setGlobalContextManager()from@opentelemetry/api@opentelemetry/api,@opentelemetry/api-logs,@opentelemetry/api-events, and@opentelemetry/semantic-conventions#5456 @david-lunaDEFAULT_ATTRIBUTE_VALUE_LENTGHT_LIMIThas been removed, please useInfinityinsteadDEFAULT_ATTRIBUTE_VALUE_COUNT_LIMIThas been removed, please use128insteadDEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIThas been removed, please use128insteadDEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIThas been removed, please use128instead🚀 (Enhancement)
WebTracerProviderconstructor now does not throw anymore whencontextManagerorpropagatorare passed as extra options to the constructordiagLogLevelFromStringutility #5475 @pichlermarc🐛 (Bug Fix)
url.parsefromnode:url#5390 @chancancodePeriodicExportingMetricReaderwhen there are no metrics to export. #5288 @jacksonweber🏠 (Internal)
InstrumentDescriptortype now extendsMetricDescriptor; moved publicInstrumentTypetype enum into./src/export/MetricData.ts#5277GaugeandMetricAdviceworkaround types in favor of the upstream@opentelemetry/apitypes #5254 @chancancodeBasicTracerProvider._registeredSpanProcessorsprivate property. #5134 @david-lunaBasicTracerProvider.activeSpanProcessorprivate property. #5211 @david-lunamodulecompiler option tonode16. #5347 @david-lunasemverpackage with internal semantic versioning check implementation to get rid ofsemverpackage initialization overhead especially in the AWS Lambda environment during coldstart #5305 @serkan-ozal@opentelemetry/semantic-conventionsdep to allow better de-duplication in installs #5439 @trentmConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.