Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add pulse metadata flag in PLE user-agent #105

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

mxiamxia
Copy link
Collaborator

@mxiamxia mxiamxia commented Oct 3, 2023

Description:
Add pulse metadata flag in PLE user-agent in EMF exporter, so CWLogs backend can indicate EMF logs request type for the corresponding actions.

Testing:
UnitTest

@@ -26,6 +26,10 @@ const (
// OutputDestination Options
outputDestinationCloudWatch = "cloudwatch"
outputDestinationStdout = "stdout"

// Pulse EMF config
pulseMetricNamespace = "AWS/APM"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to call all these vars and methods awsApm instead of pulse. Rest LGTM!

This comment was marked as resolved.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh interesting.. yeah that would need a bunch of changes on the agent side if thats the case. Please let us know once you hear back Min.

@mxiamxia mxiamxia requested a review from lisguo October 4, 2023 18:30

switch {
case userAgentFlag.isEnhancedContainerInsights && enhancedContainerInsightsEKSPattern.MatchString(logGroupName):
extraStr = "EnhancedEKSContainerInsights"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: these flag strings could be consts

@lisguo lisguo merged commit fe0f140 into amazon-contributing:aws-cwa-dev Oct 10, 2023
86 of 87 checks passed
lisguo pushed a commit to lisguo/opentelemetry-collector-contrib that referenced this pull request Oct 20, 2023
dmitryax pushed a commit to open-telemetry/opentelemetry-collector-contrib that referenced this pull request Jun 26, 2024
… exporter (#32998)

**Description:** 
Cherry-picking from downstream:
amazon-contributing#105

This PR adds AppSignals metadata flag in user-agent in EMF exporter, so
CWLogs backend can indicate EMF logs request type for the corresponding
actions

---------

Co-authored-by: Min Xia <[email protected]>
Co-authored-by: Jeffrey Chien <[email protected]>
Co-authored-by: Vastin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants