Extract common / repetitive code from instrumentations into a new common library
Which component is this bug for?
All Packages
📜 Description
Common things we have:
- [ ] OpenTelemetry Metrics creation
- [ ] Error reporting
- [ ] Checking if prompt logging is allowed
Are you willing to submit PR?
None
Hey, can I work on this issue ?
Yes definitely @ishaanagw!
Can you help me with one example of the code that is repetitive ?
This one for example
https://github.com/traceloop/openllmetry/pull/1957#discussion_r1767317525
So would you want one library for all the common the common code or a different library for OpenTelemetry Metrics creation and a different one for Checking if prompt logging is allowed, and so on ?
One library to rule them all. Maybe we can even put it in the ai semconv library we already have
okay, got it. Thanks
is it still open for contribution?