open-telemetry/opentelemetry-ruby

How to set the traces data limit?

k1r8r0wn opened this issue · 2 comments

Hello! It's not a bug, actually, but maybe the request for new functionality...

The custom Grafana Tempo settings has limit for 5Mb (default 50 from the article (see the Use exporters section)) and doesn't receive traces which are over it.

Снимок экрана 2024-03-14 в 15 20 59

How to set the limits of sended traces inside the OTEL? (gzip compression is enabled by default).

Any ideas appreciated!

Stack gems used

  gem "opentelemetry-exporter-otlp"
  gem "opentelemetry-instrumentation-graphql"
  gem "opentelemetry-instrumentation-pg"
  gem "opentelemetry-instrumentation-que"
  gem "opentelemetry-instrumentation-rack"
  gem "opentelemetry-sdk"
end

You may adjust batch sizes using as well as other values such as attribute limits using standard SDK environment variables, e.g.

https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/#batch-span-processor

You may adjust batch sizes using as well as other values such as attribute limits using standard SDK environment variables, e.g.

https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/#batch-span-processor

Much appreciated, @arielvalentin, will try.