Skip to content

Commit 9364879

Browse files
committed
Switch to management.opentelemetry.resource-attributes in tests
See gh-44468
1 parent 51885c9 commit 9364879

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spring-boot-project/spring-boot-testcontainers/src/dockerTest/java/org/springframework/boot/testcontainers/service/connection/otlp/GrafanaOpenTelemetryMetricsContainerConnectionDetailsFactoryIntegrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -50,7 +50,7 @@
5050
* @author Eddú Meléndez
5151
*/
5252
@SpringJUnitConfig
53-
@TestPropertySource(properties = { "management.otlp.metrics.export.resource-attributes.service.name=test",
53+
@TestPropertySource(properties = { "management.opentelemetry.resource-attributes.service.name=test",
5454
"management.otlp.metrics.export.step=1s" })
5555
@Testcontainers(disabledWithoutDocker = true)
5656
class GrafanaOpenTelemetryMetricsContainerConnectionDetailsFactoryIntegrationTests {

spring-boot-project/spring-boot-testcontainers/src/dockerTest/java/org/springframework/boot/testcontainers/service/connection/otlp/OpenTelemetryMetricsContainerConnectionDetailsFactoryIntegrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -54,7 +54,7 @@
5454
* @author Jonatan Ivanov
5555
*/
5656
@SpringJUnitConfig
57-
@TestPropertySource(properties = { "management.otlp.metrics.export.resource-attributes.service.name=test",
57+
@TestPropertySource(properties = { "management.opentelemetry.resource-attributes.service.name=test",
5858
"management.otlp.metrics.export.step=1s" })
5959
@Testcontainers(disabledWithoutDocker = true)
6060
class OpenTelemetryMetricsContainerConnectionDetailsFactoryIntegrationTests {

0 commit comments

Comments
 (0)