File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
exporters/prometheus/src/main/java/io/opentelemetry/exporter/prometheus Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 12
12
13
13
import io .opentelemetry .sdk .common .CompletableResultCode ;
14
14
import io .opentelemetry .sdk .common .export .MemoryMode ;
15
+ import io .opentelemetry .sdk .internal .DaemonThreadFactory ;
15
16
import io .opentelemetry .sdk .metrics .InstrumentType ;
16
17
import io .opentelemetry .sdk .metrics .data .AggregationTemporality ;
17
18
import io .opentelemetry .sdk .metrics .export .CollectionRegistration ;
@@ -75,7 +76,8 @@ public static PrometheusHttpServerBuilder builder() {
75
76
// we configure prometheus with a single thread executor such that requests are handled
76
77
// sequentially.
77
78
if (memoryMode == MemoryMode .REUSABLE_DATA ) {
78
- executor = Executors .newSingleThreadExecutor ();
79
+ executor =
80
+ Executors .newSingleThreadExecutor (new DaemonThreadFactory ("prometheus-http-server" ));
79
81
}
80
82
try {
81
83
this .httpServer =
You can’t perform that action at this time.
0 commit comments