v49
Agent Tag
Agent Version: 7.47.1
arn:aws:lambda:<AWS_REGION>:464622532012:layer:Datadog-Extension:49
arn:aws:lambda:<AWS_REGION>:464622532012:layer:Datadog-Extension-ARM:49
arn:aws-us-gov:lambda:us-gov-<AWS_REGION>:002406178527:layer:Datadog-Extension:49
arn:aws-us-gov:lambda:us-gov-<AWS_REGION>:002406178527:layer:Datadog-Extension-ARM:49
What's Changed
-
[Serverless] Capture lambda payload as tags DataDog/datadog-agent@41c79e6
-
pkg/trace/agent: Replace Tags now acts on 'metrics' tags DataDog/datadog-agent@d6cfec4
-
pkg/trace: ensure the sql.query tag always contains the obfuscated value DataDog/datadog-agent@3d4cf32
-
pkg/serverless: set context.Canceled errors log priority to Debug DataDog/datadog-agent@c1314c5
-
[serverless] Fix flaky logs_collector unit test DataDog/datadog-agent@d8d93b3
Upgrading
The following snippet illustrates the tag structure introduced in v49 of the Datadog Extension for affected runtimes (Java, Go, .NET):
{
"function.request.headers.fieldA": "foo",
"function.request.headers.fieldB": "bar",
}
If you are using one of these runtimes, you may need to update your DD_APM_REPLACE_TAGS
configuration to comply with this new tag structure. For example, in versions prior to v49, you could replace all instances of foo
with bar
in the following manner:
Before: Replace all instances of 'foo' in lambda request tag
# Replace all instances of 'foo' in lambda request tag
- name: "function.request"
pattern: "foo"
repl: "bar"
With v49, you can replace all instances of foo
with bar
in the following manner:
After: Replace all instances of foo
in lambda request tag
# Replace all instances of 'foo' in lambda request tag fieldA
- name: "function.request.fieldA"
pattern: "foo"
repl: "bar"
# Replace all instances of 'foo' in lambda request tag fieldB
- name: "function.request.fieldB"
pattern: "foo"
repl: "bar"