File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
exporters/prometheus/src/test/java/io/opentelemetry/exporter/prometheus Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -134,9 +134,16 @@ void endToEnd() {
134
134
// Resource attributes derived from the prometheus scrape config
135
135
stringKeyValue ("service.name" , "app" ),
136
136
stringKeyValue ("service.instance.id" , "host.testcontainers.internal:" + prometheusPort ),
137
+ // net.host.name, net.host.port and http.scheme are superseded by server.address,
138
+ // server.port, and url.scheme respectively and will be removed by default in a future
139
+ // collector release
140
+ // https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/32829
137
141
stringKeyValue ("net.host.name" , "host.testcontainers.internal" ),
138
142
stringKeyValue ("net.host.port" , String .valueOf (prometheusPort )),
139
143
stringKeyValue ("http.scheme" , "http" ),
144
+ stringKeyValue ("server.address" , "host.testcontainers.internal" ),
145
+ stringKeyValue ("server.port" , String .valueOf (prometheusPort )),
146
+ stringKeyValue ("url.scheme" , "http" ),
140
147
// Resource attributes from the metric SDK resource translated to target_info
141
148
stringKeyValue (
142
149
"service_name" ,
You can’t perform that action at this time.
0 commit comments