Skip to content

Conversation

@jj22ee
Copy link
Contributor

@jj22ee jj22ee commented Jul 22, 2025

Description of changes:
Populate the correct CloudWatchMetrics in EMF when metrics has empty dimension list due to no attributes.

Testing:

{
    "_aws": {
        "Timestamp": 1753213216039,
        "CloudWatchMetrics": [
            {
                "Namespace": "default",
                "Metrics": [
                    {
                        "Name": "histogram.counter",
                        "Unit": "Milliseconds"
                    }
                ]
            }
        ]
    },
    "Version": "1",
    "otel.resource.service.name": "unknown_service:node",
    "otel.resource.telemetry.sdk.language": "nodejs",
    "otel.resource.telemetry.sdk.name": "opentelemetry",
    "otel.resource.telemetry.sdk.version": "1.30.1",
    "otel.resource.telemetry.auto.version": "0.6.0-dev0-aws",
    "otel.resource.aws.service.type": "gen_ai_agent",
    "histogram.counter": {
        "Values": [
            0.9946140065969877,
            1.9892280131939772,
            3.002072155884692,
            3.978456026387959,
            0
        ],
        "Counts": [
            1,
            1,
            2,
            3,
            2
        ],
        "Count": 9,
        "Sum": 21,
        "Max": 4,
        "Min": 0
    }
}

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jj22ee jj22ee requested a review from a team as a code owner July 22, 2025 19:48
@jj22ee jj22ee merged commit 164952a into aws-observability:main Jul 22, 2025
9 checks passed
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.

2 participants