-
Notifications
You must be signed in to change notification settings - Fork 118
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
fix: setting oban attributes #247
Conversation
yordis
commented
Dec 12, 2023
•
edited
Loading
edited
- Should I prefix everything with "oban.*" for these attributes?
c8e41ea
to
2257987
Compare
Should I prefix everything with |
instrumentation/opentelemetry_oban/lib/opentelemetry_oban/plugin_handler.ex
Outdated
Show resolved
Hide resolved
instrumentation/opentelemetry_oban/lib/opentelemetry_oban/plugin_handler.ex
Outdated
Show resolved
Hide resolved
You can add that to this. Might as well get it done since we're touching it. |
@bryannaegele done! |
@tsloughter @bryannaegele is there anything I need to do to get this to the finish line? |
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.
Looking through this again and I missed a couple of things.
- We want to move everything to the oban namespace which includes the attributes currently under
messaging.oban.*
to justoban.*
- We should have all the attributes namespaced to their function, e.g. job attributes under
oban.job.*
and these new plugin ones underoban.plugins.plugin_name.*
so context is provided and there's no risk of collisions between plugins.
instrumentation/opentelemetry_oban/lib/opentelemetry_oban/plugin_handler.ex
Outdated
Show resolved
Hide resolved
1727764
to
e3fcadd
Compare
@bryannaegele done, hopefully I understood the assignment |
instrumentation/opentelemetry_oban/lib/opentelemetry_oban/job_handler.ex
Outdated
Show resolved
Hide resolved
e3fcadd
to
0f320ab
Compare
@joaothallis anything else? I am wondering how to get this to the finish line |
instrumentation/opentelemetry_oban/lib/opentelemetry_oban/plugin_handler.ex
Outdated
Show resolved
Hide resolved
Reading the spec it is not specifying that other attributes should start with |
7b07b1b
to
cddf4da
Compare
cddf4da
to
56a79c9
Compare
Added Unit Tests, let me know! |
56a79c9
to
a9a1e45
Compare
a9a1e45
to
1fb1976
Compare
instrumentation/opentelemetry_oban/lib/opentelemetry_oban/plugin_handler.ex
Show resolved
Hide resolved
@bryannaegele ready to go |
1fb1976
to
d282d9d
Compare
You're going to kill me but would you mind poking at this test that started failing with newer Oban after I bumped it? I think the test just needs to be updated but I'm not an Oban expert |
…-erlang-contrib into fix-oban-attributes
@bryannaegele oban-bg/oban#1035 it needs to be fixed in the Oban side, it was removed by mistake |
Awesome! Thanks for following up. |