Skip to content

Conversation

@Kirdock
Copy link
Collaborator

@Kirdock Kirdock commented Nov 18, 2025

Why this PR?

The test for dynatrace_log_metrics can fail if the metric key already exists (race condition or parallel test executions).

What has changed?

A unique identifier is now added to the dynatrace_log_metrics resource example.

How does it do it?

By adding #name# to the metric key.

How is it tested?

Current tests cover it.

How does it affect users?

Doesn't affect users. They will just see a slightly different example.

Issue:

The metric key for `dynatrace_log_metrics` has to be unique.
When running tests in parallel or encountering an error during destroy/cleanup, the metric key may already exist. So, adding `#name#` to the key makes it unique.
@d0weinberger d0weinberger force-pushed the test/log-metric-uniqueness branch from d0d9c19 to 4117d55 Compare November 20, 2025 16:19
@sonarqubecloud
Copy link

@d0weinberger d0weinberger merged commit a85e0aa into main Nov 20, 2025
25 checks passed
@d0weinberger d0weinberger deleted the test/log-metric-uniqueness branch November 20, 2025 16:45
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