-
Notifications
You must be signed in to change notification settings - Fork 44
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: add spec compliant otel hook #169
Conversation
f478cf1
to
4a544ef
Compare
Thanks @thiyagu06! We'll review this tomorrow but it looks great at first glance. I noticed in the screenshot you attached that the variant is quoted. Is that expected? |
yeah. Thanks for pointing that. the variant is double quoted because, I convert the value into json format. Line 77 in 4a544ef
Object type. Is that okay if we could use toString method instead of using jackson serialise it.
|
Yes, in fact, I think we should try to avoid dependencies such as jackson here. I think Complex object values are represented by our If in the future we decide to standardize the representation of these objects, we could implement one in the overridden |
hooks/open-telemetry/src/main/java/dev/openfeature/contrib/hooks/otel/OpenTelemetryHook.java
Outdated
Show resolved
Hide resolved
Yeah. I understand that. Fixed it |
hooks/open-telemetry/src/main/java/dev/openfeature/contrib/hooks/otel/OpenTelemetryHook.java
Outdated
Show resolved
Hide resolved
...s/open-telemetry/src/test/java/dev/openfeature/contrib/hooks/otel/OpenTelemetryHookTest.java
Show resolved
Hide resolved
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.
My only real concern is: https://github.com/open-feature/java-sdk-contrib/pull/169/files#r1055525423
Once this is addressed it looks like it can be merged. Thanks a lot, especially for even giving this a test in Jaeger.
hooks/open-telemetry/src/main/java/dev/openfeature/contrib/hooks/otel/OpenTelemetryHook.java
Show resolved
Hide resolved
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.
Looks good to me, thank you!
Signed-off-by: thiyagu06 <thiyagu103@gmail.com>
…n info in README.md Signed-off-by: thiyagu06 <thiyagu103@gmail.com>
Signed-off-by: thiyagu06 <thiyagu103@gmail.com>
befc82c
to
9b82ca6
Compare
…t to 44c30b3 (open-feature#169) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This PR
added otel spec compliant hook.
Related Issues
Fixes #144
Notes
Follow-up Tasks
How to test
add the hook and see the result in Jaeger tracing UI.
openFeatureAPI.addHooks(new OpenTelemetryHook());