v1.0.0
Major Changes
-
#16
efae3f9Thanks @iivvaannxx! - Removed attributes that exposed runtime environment information. These include the following:deployment.region,deployment.cloud, plus all thehost,osandprocessattributes.It also renames
deployment.environmenttoenvironment.Finally, attributes like
action.package_nameandaction.transaction_idare now not added if they areunknown.action.versionis also not included indevelopment, as the value was always fixed to0.0.0 (development), which is not much useful and there's already theenvironmentattribute.You should not need to update your code, but acknowledge that some attributes are now missing. If you want them you should add them manually.
-
0bc0a0eThanks @renovate[bot]! - TheLogRecordtype (exported from theotelentrypoint) has been renamed toSdkLogRecordand it's no longer a class but a TypeScript interface. -
#16
efae3f9Thanks @iivvaannxx! -getPresetInstrumentationsnow throws anErrorif the givenpresetis unknown. This change has been made to prevent silent failures.There's no need to update your code if you're using correctly the presets provided by the library. At most you may want to add a
try/catchblock to handle the error.
Minor Changes
-
0bc0a0eThanks @renovate[bot]! - Update OpenTelemetry dependencies (see the Renovate PR for the full list). -
e490dafThanks @renovate[bot]! - Update OpenTelemetry Contrib dependencies (see the Renovate PR for the full list). -
#16
efae3f9Thanks @iivvaannxx! - UseError.captureStackTracenative API if available on unhandled errors in instrumented functions. -
#16
efae3f9Thanks @iivvaannxx! - Add aaction.nameresource attribute in the default inferred telemetry attributes. -
#16
efae3f9Thanks @iivvaannxx! - Add aself.nameattribute in instrumented functions with the name of the span.
Patch Changes
-
#16
efae3f9Thanks @iivvaannxx! - Fix action deadline calculation to correctly use__OW_DEADLINEas epoch milliseconds. -
#16
efae3f9Thanks @iivvaannxx! - Remove trailing slash in inferredserviceNamewhenpackageNameis not known. -
#16
efae3f9Thanks @iivvaannxx! - Fixes logging on shutdown which was throwing if the SDK was not initialized, instead of just reporting a warning. -
#16
efae3f9Thanks @iivvaannxx! - Fix misrepresentedparamstype, as it can also contain non-string values. -
#16
efae3f9Thanks @iivvaannxx! - Add default span name to the entrypoint if the function name is not available. -
#16
efae3f9Thanks @iivvaannxx! - FixCarriergeneric type inserializeContextIntoCarrieranddeserializeContextFromCarrierto usePropertyKeyas theRecordkey.Applies this change also in the
carrierreturn type ofgetContextCarrierand thecontextCarrierparameter ofInstrumentationContext. -
#16
efae3f9Thanks @iivvaannxx! - Fix error handling in entrypoint by letting runtime errors bubble up and only throwing if the error happens during instrumentation wrapping. -
#21
dc9bd69Thanks @iivvaannxx! - Fixes a bug where the runtime actionparamsweren't being forwarded to thegetContextCarrierhelper of theinstrumentEntrypointconfiguration. -
#16
efae3f9Thanks @iivvaannxx! - Fix action name parsing for default inferred telemetry attributes. -
#16
efae3f9Thanks @iivvaannxx! - Don't keep a reference to theNodeSDKif it couldn't initialize. -
#16
efae3f9Thanks @iivvaannxx! - FixdefineMetricsgeneric definition to acceptPropertyKeyas theRecordkey. -
#16
efae3f9Thanks @iivvaannxx! - Improved error logging on uninitialized SDK and uninitialized telemetry API. -
#16
efae3f9Thanks @iivvaannxx! - Automatic instrumentation for the Winston logger provider has been removed from thesimplepreset. It's not needed because the OpenTelemetry transport added by that instrumentation is already added manually.