Skip to content

Conversation

@Frank-Gu-81
Copy link
Member

Use telemetryMetricsBackend instead of telemetryTracesBackend in the RuntimeException when an invalid metrics backend is configured.

Summary

Fix incorrect variable in telemetry metrics backend error message

Description

Fixed a bug in DefaultTelemetryFactory where the error message for invalid metrics backend configuration was displaying the wrong variable value.

Issue: When an invalid telemetryMetricsBackend value was provided, the RuntimeException incorrectly showed the telemetryTracesBackend value in the error message, making it confusing for users to identify which configuration was actually invalid.

Fix: Changed line 64 to use telemetryMetricsBackend instead of telemetryTracesBackend in the exception message.

Before:

throw new RuntimeException(
    telemetryTracesBackend + " is not a valid metrics backend. Available options: OTLP, NONE.");

After:

throw new RuntimeException(
    telemetryMetricsBackend + " is not a valid metrics backend. Available options: OTLP, NONE.");

Additional Reviewers

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Use telemetryMetricsBackend instead of telemetryTracesBackend in the
RuntimeException when an invalid metrics backend is configured.

chore(deps): bump software.amazon.awssdk:rds from 2.32.21 to 2.32.25 (aws#1509)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

docs: focus readme intro on plugin flexibility (aws#1508)

docs: clarifying blue/green compatibility with current service landscape (aws#1512)
@sergiyvamz sergiyvamz merged commit afeb90c into aws:main Aug 25, 2025
5 of 6 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