Flagd-UI Service

Estás viendo la versión en inglés de está página porque aún no ha sido traducida. ¿Te interesa ayudar? Mira en Contribuir.

This service acts as a frontend where users can toggle and edit feature flags to alter the behavior of the demo environment.

Flagd-UI service source

Initializing Tracing

Once installed the necessary dependencies for auto-instrumentation of Phoenix endpoints and requests, we configure them according to the official documentation, editing the config/runtime.exs file:

otel_endpoint =
  System.get_env("OTEL_EXPORTER_OTLP_ENDPOINT") ||
    raise """
    environment variable OTEL_EXPORTER_OTLP_ENDPOINT is missing.
    """

config :opentelemetry, :processors,
    otel_batch_processor: %{
      exporter: {:opentelemetry_exporter, %{endpoints: [otel_endpoint]}}
    }

And we initialize the OpenTelemetry Bandit adapter and the Phoenix library as well inside lib/flagd_ui/application.ex:

OpentelemetryBandit.setup()
OpentelemetryPhoenix.setup(adapter: :bandit)

Traces

Phoenix and Bandit are auto-instrumented through the dedicated libraries.

Metrics

TBD

Logs

TBD


Última modificación September 29, 2025: docs: add flagd-ui to demo services (#7814) (753d9126)