Add Application Signals logs pipeline translator#2111
Open
Add Application Signals logs pipeline translator#2111
Conversation
83b5680 to
9027c02
Compare
logs.logs_collected.application_signals
jj22ee
commented
May 8, 2026
Comment on lines
+53
to
+54
| // TODO: Update default log group prefix before PR is merged. | ||
| defaultLogGroupPrefix = "/aws/telemetry/" |
Contributor
Author
There was a problem hiding this comment.
Still pending and not final.
| defaultLogStreamName = "default" | ||
|
|
||
| metadataKeyLogGroup = "aws.cloudwatch.log_group.destination" | ||
| metadataKeyLogStream = "aws.cloudwatch.log_stream.destination" |
Contributor
Author
There was a problem hiding this comment.
These key values are not following any otel spec, they're just arbitrary attributes created by Transform Processor which are used by AttributesToContext Processor, so we don't expect customers to know about these keys or even set them in their exported logs.
However, if customer does know and set these these attributes in their logs, we'll respect it and won't override them.
51f3c5d to
d454f8f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description of the issue
Application Signals currently collects metrics and traces but not logs. This PR adds a CWAgent translator that generates an OTel logs pipeline to route OTLP logs to CloudWatch via the CW OTLP endpoint, with automatic per-service log group creation.
Customers configure
logs.logs_collected.application_signalswith optionallog_group_name(supporting placeholders like{service.name}) andlog_stream_name. The provisioner extension creates log groups/streams on first encounter.Description of changes
Adds a new pipeline translator at
translator/translate/otel/pipeline/applicationsignalslogs/that produces two pipeline shapes:Dynamic (placeholders in log_group_name/log_stream_name):
otlphttp → headers_setter → awscloudwatchlogsprovisioner → sigv4authtransform → attributestocontext → batch(metadata_keys)Static (no placeholders):
otlphttp → awscloudwatchlogsprovisioner → sigv4authbatchx-aws-log-group/x-aws-log-streamheaders on the exporterNotable behaviors:
/{deployment.environment}/prefix/{service.name})whereguard)AutoEnableIfNeededauto-opts-in the logs pipeline whenmetrics_collected.application_signalsis configuredNew/Updated shared translator packages:
extension/awscloudwatchlogsprovisioner— newextension/headerssetter— newprocessor/attributestocontext— newexporter/otlphttp— new (generic, signal-awareEndpointConfig)extension/sigv4auth— Updated withWithServiceoptionprocessor/batchprocessor— Updated withWithMetadataKeysoptionprocessor/transformprocessor— Updated withNewTranslatorWithLogStatementsLicense
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Tests
amazon-cloudwatch-agent-test: <TODO: Make PR>Requirements
Before commiting your code, please do the following steps.
make fmtandmake fmt-shmake lintIntegration Tests
To run integration tests against this PR, add the
ready for testinglabel.