Flagd-UI Service
Vous consultez la version anglaise de cette page car elle n’a pas encore été entièrement traduite. Vous souhaitez contribuer ? Voir Contribuer.
This service acts as a frontend where users can toggle and edit feature flags to alter the behavior of the demo environment.
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
Feedback
Cette page est-elle utile?
Thank you. Your feedback is appreciated!
Please let us know how we can improve this page. Your feedback is appreciated!