chore: telemetry updates for the deployments#11500
Conversation
Keycloak example will be updated to 26.2.5, which contains support for telemetry. The committed setup changes are required for the Keycloak update. Due to the Keycloak update to 26.2.5, jaeger will also need to be updated. It isn't part of the deployment, but the expected docker image is jaegertracing/jaeger:2.7.0 (which is supported by Keycloak 26.2.5). The jaeger update also brings changes in oCIS. Previous 6831 port in jaeger isn't available in recent versions (particularly 2.7.0), and has changed to port 4317, which supports the "otlp" tracing type in oCIS. No code change is needed.
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
|
@jvillafanez Q: we have many locations in the ocis code that have in the envvar text description |
|
It seems it got added in #5132 , but I don't know if it's completed or not. At least "it works for me". |
Seems to me as good and consistent approach. |
|
@jvillafanez Should we switch the |
|
We'll probably need to switch the default at some point, but I'd prefer to ensure it works without problems. It can wait for a major version. |
For reference: https://www.jaegertracing.io/docs/2.7/architecture/apis/ port 6831 is deprecated. It might still be possible to run it but it might not be trivial, and the port isn't running by default. |
|
Could you add |
ocis-pkg/tracing/config.go
Outdated
| type Config struct { | ||
| Enabled bool `yaml:"enabled" env:"OCIS_TRACING_ENABLED" desc:"Activates tracing." introductionVersion:"pre5.0"` | ||
| Type string `yaml:"type" env:"OCIS_TRACING_TYPE" desc:"The type of tracing. Defaults to \"\", which is the same as \"jaeger\". Allowed tracing types are \"jaeger\" and \"\" as of now." introductionVersion:"pre5.0" introductionVersion:"pre5.0"` | ||
| Type string `yaml:"type" env:"OCIS_TRACING_TYPE" desc:"The type of tracing. Defaults to \"\", which is the same as \"jaeger\". Allowed tracing types are \"jaeger\", \"otlp\" and \"\" as of now." introductionVersion:"pre5.0" introductionVersion:"pre5.0"` |
There was a problem hiding this comment.
| Type string `yaml:"type" env:"OCIS_TRACING_TYPE" desc:"The type of tracing. Defaults to \"\", which is the same as \"jaeger\". Allowed tracing types are \"jaeger\", \"otlp\" and \"\" as of now." introductionVersion:"pre5.0" introductionVersion:"pre5.0"` | |
| Type string `yaml:"type" env:"OCIS_TRACING_TYPE" desc:"The type of tracing. Defaults to '', which is the same as 'jaeger'. Allowed tracing types are 'jaeger', 'otlp' and '' as of now." introductionVersion:"pre5.0" introductionVersion:"pre5.0"` |
For the sake that we everywhere else use single quotes instead of double quotes. This for sure was just a leftover from ancient times 😅
This is just for documentation purposes. There is no code change.
f52e748 to
641fa42
Compare
|
I think we can skip the "tag alignment" error in sonarCloud. Not sure why it only triggers there when it should happen in every config file. We'll probably need to reformat a lot of files. |
How can this then be merged? |
|
@jvillafanez hmmm, if I compare:
and
why do we have in |
|
As far as I know, sonarcloud's proposed solution is to move the "ocisConfig" to the end of the line, which doesn't make sense. That's why I'm confused. Regarding the "ocisConfig" vs "yaml", #3412 is what I've found. I guess it's kind of dead code or code that doesn't work any longer. I assume those vars won't be loaded from the yaml file (which seems wrong to me), but they should be loaded from the environment variables. |
|
|
it seems it worked 🤷 |
|
merging? |
chore: telemetry updates for the deployments




Keycloak example will be updated to 26.2.5, which contains support for telemetry. The committed setup changes are required for the Keycloak update.
Due to the Keycloak update to 26.2.5, jaeger will also need to be updated. It isn't part of the deployment, but the expected docker image is jaegertracing/jaeger:2.7.0 (which is supported by Keycloak 26.2.5).
The jaeger update also brings changes in oCIS. Previous 6831 port in jaeger isn't available in recent versions (particularly 2.7.0), and has changed to port 4317, which supports the "otlp" tracing type in oCIS. No code change is needed.
Description
Update setup for telemetry. Note that there are references to
jaeger:4317, but such container isn't provided (as it wasn't before this PR). You can use the container below if needed (adjust what you need)Related Issue
#11298
Motivation and Context
How Has This Been Tested?
Manually tested with the jaeger container shown above. There are traces for keycloak and ocis services in the jaeger instance.
Screenshots (if appropriate):
Types of changes
Checklist: