Repository navigation
|
hey, we have a user storage SPI we want to instrument with open telemetry, are there some guidelines on how to do it? |
Answered by
mabartos
Jul 7, 2025
Replies: 1 comment 3 replies
|
@KyriosGN0 Hi! It is possible to create your custom spans via the Tracing SPI available in Keycloak (note it is an internal SPI and things may change). Please look at the TracingProvider, where you can find comprehensive information on how to use it. The best way is to use TracingProvider.trace(). You can also check how it is done in Keycloak codebase and do the same in your extension 👋 |
3 replies
Answer selected by
mabartos
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@KyriosGN0 Hi!
It is possible to create your custom spans via the Tracing SPI available in Keycloak (note it is an internal SPI and things may change).
Please look at the TracingProvider, where you can find comprehensive information on how to use it. The best way is to use TracingProvider.trace(). You can also check how it is done in Keycloak codebase and do the same in your extension 👋