Skip to content

Commit b701341

Browse files
committed
add a flag to avoid a breaking change
1 parent 4746088 commit b701341

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sdk-extensions/incubator/src/test/java/io/opentelemetry/sdk/extension/incubator/fileconfig/MetricReaderFactoryTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ void create_PeriodicConfigured() {
130130
void create_PullPrometheusDefault() throws IOException {
131131
int port = randomAvailablePort();
132132
List<Closeable> closeables = new ArrayList<>();
133-
PrometheusHttpServer expectedReader = PrometheusHttpServer.builder().setPort(port).build();
133+
PrometheusHttpServer expectedReader =
134+
PrometheusHttpServer.builder().setUtf8SupportEnabled(true).setPort(port).build();
134135
// Close the reader to avoid port conflict with the new instance created by MetricReaderFactory
135136
expectedReader.close();
136137

@@ -166,6 +167,7 @@ void create_PullPrometheusConfigured() throws IOException {
166167
.setHost("localhost")
167168
.setPort(port)
168169
.setOtelScopeEnabled(false)
170+
.setUtf8SupportEnabled(true)
169171
.setAllowedResourceAttributesFilter(
170172
IncludeExcludePredicate.createPatternMatching(
171173
singletonList("foo"), singletonList("bar")))

0 commit comments

Comments
 (0)