-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(trait): Add telemetry trait #3970
feat(trait): Add telemetry trait #3970
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only nitpick comments but otherwise looks good to me.
de84ac8
to
fcf5b94
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
// | ||
// The trait is able to automatically discover the tracing endpoint available in the namespace (supports **Jaeger**). | ||
// | ||
// The Tracing trait is disabled by default. | ||
// | ||
// WARNING: The Tracing trait can't be enabled at the same time as the Telemetry trait. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd take the opportunity and add a deprecation notice at least here, reminding to use Telemetry trait.
|
||
|=== | ||
|
||
// End of autogenerated code - DO NOT EDIT! (configuration) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After this autogenerated code (or even in the trait comment section) we could add some example how to use the trait. We did in other traits if you want to have a look https://camel.apache.org/camel-k/1.11.x/traits/toleration.html#_examples
25ea619
to
ae51de1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice job! +1 for the new telemetry test suite, it opens the door to further refined testing on observability. Let us know when this is ready to merge as for me it looks already great!
I need to actually add the actual testing code (with trace verification) before 😅 , that's why it is still a draft. |
096802b
to
08e463b
Compare
@squakez it's ready on my side. Don't hesitate to take the time to check the e2e test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some little possible changes to consider, but overall is a great job.
e2e/support/test_support.go
Outdated
@@ -445,6 +445,17 @@ func IntegrationLogs(ns, name string) func() string { | |||
} | |||
} | |||
|
|||
func TailedLogs(ns, name string) func() string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should parametrize the number of lines to tail IMO. It is a quick win very useful for future usage. Additionally some quick comment as a documentation would be nice as well.
e2e/support/test_support.go
Outdated
ctrl.MatchingLabels{ | ||
"app.kubernetes.io/name": appName, | ||
}); err != nil { | ||
failTest(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to return the error and let the invoker to fail or do any other action instead of failing here.
08e463b
to
d69ea5c
Compare
* Define telemetry addon * Jaeger discovery for OTLP API * Basic configuration for tracing OTLP sampler * update existing e2e using tracing to telemetry Resolves: apache#3519
c78c16f
to
525bc53
Compare
* Add specific github action * Add opentelemetry basic config collector in telemetry e2e env
525bc53
to
c210a98
Compare
Resolves: #3519
Motivation
Add a new addon/trait
telemetry
to provide new default way for tracing. The current tracing trait based on opentracing is deprecated both in camel-quarkus and quarkus and will be deprecated.Description
The new telemetry trait has been added with the basic configuration:
ratio
samplerExisting e2e test using tracing have been updated to use telemetry.
Next step : deprecate tracing trait
Runtime : Linked PR with camel-k-runtime update: apache/camel-k-runtime#945
Release Note