File tree Expand file tree Collapse file tree
main/resources/co/elastic/otel
test/java/co/elastic/otel/declarativeconfig Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,10 +47,12 @@ meter_provider:
4747 otlp_http :
4848 endpoint : ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://localhost:4318}/v1/metrics
4949 headers_list : ${OTEL_EXPORTER_OTLP_HEADERS}
50+ temporality_preference : delta
5051 # use the following for grpc
5152 # otlp_grpc:
5253 # endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT}
5354 # headers_list: ${OTEL_EXPORTER_OTLP_HEADERS}
55+ # temporality_preference: delta
5456
5557logger_provider :
5658 processors :
Original file line number Diff line number Diff line change @@ -78,7 +78,8 @@ void testDefaults() {
7878 assertThatJson (json (config .getMeterProvider ().getReaders ().get (0 )))
7979 .inPath ("periodic.exporter.otlp_http" )
8080 .isObject ()
81- .containsEntry ("endpoint" , "http://localhost:4318/v1/metrics" );
81+ .containsEntry ("endpoint" , "http://localhost:4318/v1/metrics" )
82+ .containsEntry ("temporality_preference" , "delta" );
8283
8384 assertThat (config .getLoggerProvider ()).isNotNull ();
8485 assertThat (config .getLoggerProvider ().getProcessors ()).hasSize (1 );
You can’t perform that action at this time.
0 commit comments