Releases: seek-oss/datadog-custom-metrics
v8.0.0
Major Changes
-
Migrate
createLambdaExtensionClientandLambdaExtensionMetricsClientto the newlambdaentry point. (#369)- import { createLambdaExtensionClient, type LambdaExtensionMetricsClient } from 'seek-datadog-custom-metrics'; + import { createLambdaExtensionClient, type LambdaExtensionMetricsClient } from 'seek-datadog-custom-metrics/lambda';
This should resolve the following runtime issue for Lambda functions when esbuild is used:
"TypeError [ERR_INVALID_ARG_VALUE]: The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received undefined", " at createRequire (node:internal/modules/cjs/loader:1967:11)", " at Object.<anonymous> (/node_modules/.pnpm/seek-datadog-custom-metrics@7.0.0_datadog-lambda-js@12.132.0_hot-shots@13.1.0/node_modules/seek-datadog-custom-metrics/lib/_virtual/_rolldown/runtime.mjs:4:33)",
Your component must install the
datadog-lambda-jspeer dependency to use this entry point.
v7.0.0
v6.0.3
v6.0.2
v6.0.1
v6.0.0
6.0.0 (2025-08-11)
createStatsDClient: Support both environment + DD_ENV (#315) (28f2640)
Previously, createStatsDClient would override the environment config with the DD_ENV environment variable where available. Now, it will append the two values and tag metrics with both env:{environment},env:{DD_ENV}. This behaviour should be less surprising if/when you decide to propagate DD_ENV to your workload container.
DD_SERVICE and DD_VERSION environment variables no longer apply tags to metrics. This underlying hot-shots feature was never documented by seek-datadog-custom-metrics and should be unnecessary for typical SEEK usage. Gantry services do not need these to be specified on the client, as the Datadog agent sidecar already sets unified service tags outside of the workload container.
v5.0.0
5.0.0 (2025-07-23)
BREAKING CHANGES
The following clients have breaking changes:
-
CloudWatch client has been removed. It was deprecated in v4.2.0 (March 2023) and there is very limited usage remaining at SEEK. Migrate to the Lambda Extension client.
-
StatsD client no longer attaches the global
versiontag to custom metrics, andenvis now optional. These tags are automatically applied via telemetry agents in SEEK's typical container workload hosting environments.Environment envversionAutomat Automat environment name ( development|production){deployment}-{version}, e.g.myDeploymentName-abcdefa.123Gantry Gantry environment name VERSIONenvironment variable, e.g.abcdefa.123Some Gantry services may have a Gantry environment name like
prod-1and then supply a different value likecreateStatsDClient({ environment: 'production' })in code. This behaviour has been retained. It results in metrics that are tagged with bothenv:prod-1andenv:production, and may be useful for forward compatibility with Automat'sdevelopment|production.