Skip to content

Enable OpenTelemetry for non-prod environments

Chad Woolley requested to merge caw-o11y into master

What does this MR do and why?

Enable OpenTelemetry for non-prod environments.

See https://gitlab.com/gitlab-com/gitlab-OKRs/-/work_items/6843+

Tasks

  • Follow https://docs.honeycomb.io/getting-data-in/opentelemetry/ruby/ to add gems and initializer
  • Restrict initializer to only enable development and staging environments
  • Add an GITLAB_ENABLE_OTEL_EXPORTERS env var which is required for enabling the initializer (instead of feature flag or Settings entry, which I'm not sure would be available).
  • Add minimal developer documentation page with basic setup/testing instructions.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshot_2024-04-08_at_8.27.57_PM

How to set up and validate locally

Edited by Chad Woolley

Merge request reports

Loading