@@ -318,7 +318,7 @@ impl Server {
318318 . to ( logstream:: delete)
319319 . authorize_for_stream ( Action :: DeleteStream ) ,
320320 )
321- . app_data ( web:: PayloadConfig :: default ( ) . limit ( MAX_EVENT_PAYLOAD_SIZE ) ) ,
321+ . app_data ( web:: JsonConfig :: default ( ) . limit ( MAX_EVENT_PAYLOAD_SIZE ) ) ,
322322 )
323323 . service (
324324 // GET "/logstream/{logstream}/info" ==> Get info for given log stream
@@ -404,7 +404,7 @@ impl Server {
404404 . to ( ingest:: ingest)
405405 . authorize_for_stream ( Action :: Ingest ) ,
406406 )
407- . app_data ( web:: PayloadConfig :: default ( ) . limit ( MAX_EVENT_PAYLOAD_SIZE ) )
407+ . app_data ( web:: JsonConfig :: default ( ) . limit ( MAX_EVENT_PAYLOAD_SIZE ) )
408408 }
409409
410410 // /v1/logs endpoint to be used for OTEL log ingestion only
@@ -417,7 +417,7 @@ impl Server {
417417 . to ( ingest:: handle_otel_logs_ingestion)
418418 . authorize_for_stream ( Action :: Ingest ) ,
419419 )
420- . app_data ( web:: PayloadConfig :: default ( ) . limit ( MAX_EVENT_PAYLOAD_SIZE ) ) ,
420+ . app_data ( web:: JsonConfig :: default ( ) . limit ( MAX_EVENT_PAYLOAD_SIZE ) ) ,
421421 )
422422 . service (
423423 web:: resource ( "/metrics" )
@@ -426,7 +426,7 @@ impl Server {
426426 . to ( ingest:: handle_otel_metrics_ingestion)
427427 . authorize_for_stream ( Action :: Ingest ) ,
428428 )
429- . app_data ( web:: PayloadConfig :: default ( ) . limit ( MAX_EVENT_PAYLOAD_SIZE ) ) ,
429+ . app_data ( web:: JsonConfig :: default ( ) . limit ( MAX_EVENT_PAYLOAD_SIZE ) ) ,
430430 )
431431 . service (
432432 web:: resource ( "/traces" )
@@ -435,7 +435,7 @@ impl Server {
435435 . to ( ingest:: handle_otel_traces_ingestion)
436436 . authorize_for_stream ( Action :: Ingest ) ,
437437 )
438- . app_data ( web:: PayloadConfig :: default ( ) . limit ( MAX_EVENT_PAYLOAD_SIZE ) ) ,
438+ . app_data ( web:: JsonConfig :: default ( ) . limit ( MAX_EVENT_PAYLOAD_SIZE ) ) ,
439439 )
440440 }
441441
0 commit comments