You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove global version tag and CloudWatch client (#310)
BREAKING CHANGE: The following clients have breaking changes:
- CloudWatch client has been removed. It was deprecated in [v4.2.0](https://github.com/seek-oss/datadog-custom-metrics/releases/tag/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 `version` tag to custom metrics, and `env` is now optional. These tags are automatically applied via telemetry agents in SEEK's typical container workload hosting environments.
| Environment | `env` | `version`
| :-- | :-- | :--
| Automat | Automat environment name (`development` \| `production`) | `{deployment}-{version}`, e.g. `myDeploymentName-abcdefa.123`
| Gantry | Gantry environment name | `VERSION` environment variable, e.g. `abcdefa.123`
Some Gantry services may have a Gantry environment name like `prod-1` and then supply a different value like `createStatsDClient({ environment: 'production' })` in code. This behaviour has been retained. It results in metrics that are tagged with both `env:prod-1` and `env:production`, and may be useful for forward compatibility with Automat's `development` | `production`.
All custom metrics are prefixed by `AppConfig.name`.
18
-
Two global tags are also added to every custom metric:
17
+
All custom metrics are prefixed by `{config.name}.`.
18
+
19
+
One global tag may be optionally added to every custom metric:
19
20
20
21
-`AppConfig.environment` becomes `env:${value}`
21
-
-`AppConfig.version` becomes `version:${value}`
22
22
23
-
These tags are consistent with tags sent by [Gantry](https://github.com/SEEK-Jobs/gantry) via Datadog's AWS integration.
23
+
This behaviour has been retained for compatibility.
24
+
Review whether you can rely on the `env` set by your Datadog agent;
25
+
this will be the Automat or Gantry environment name at SEEK.
26
+
27
+
In some scenarios, you may still want to manually set a different environment.
28
+
Some Gantry services may have a Gantry environment name like `prod-1` and then supply a different value like `production` here.
29
+
This behaviour has been retained.
30
+
It results in metrics that are tagged with both `env:prod-1` and `env:production`,
31
+
and may be useful for forward compatibility with Automat's `development` | `production`.
24
32
25
33
## API reference
26
34
27
35
### `createStatsDClient`
28
36
29
-
`createStatsDClient` creates a [hot-shots](https://github.com/brightcove/hot-shots) client configured with our [tagging convention](#tagging-convention).
37
+
`createStatsDClient` creates a [hot-shots](https://github.com/brightcove/hot-shots) client.
30
38
This is intended for containerized services, particularly those deployed with [Gantry](https://github.com/SEEK-Jobs/gantry).
0 commit comments