🚀 Feature: support emitting events for prompts in addition to current behavior
Which component is this feature for?
All Packages
🔖 Feature description
Fix the following packages and their tests:
- [ ] AlephAlpha
- [ ] Anthropic
- [ ] Bedrock
- [ ] Cohere
- [ ] Google Generative AI
- [ ] Groq
- [ ] Langchain
- [ ] LlamaIndex
- [ ] Mistral AI
- [ ] Ollama
- [ ] OpenAI
- [ ] Replicate
- [ ] SageMaker
- [ ] Together
- [ ] Transformers
- [ ] VertexAI
- [ ] WatsonX
🎤 Why is this feature needed ?
Full compliance with new semantic conventions
✌️ How do you aim to achieve this?
See new OpenAI instrumentation for inspiration.
- [ ] Make sure to keep the current way of emitting events and the new (event-based) way with the official semantic conventions.
- [ ] Add a config to each instrumentation called
use_legacy_attributeswhich defaults totrue, and if set to false emit events instead of the prompt / completion attributes. - [ ] Propagate a new initialization parameter of the SDK called
use_legacy_attributesthat sets this config in all instrumentations.
🔄️ Additional Information
No response
👀 Have you spent some time to check if this feature request has been raised before?
- [X] I checked and didn't find similar issue
Are you willing to submit PR?
None
/bounty $1200
💎 $1,500 bounty • Traceloop (YC W23)
Steps to solve:
-
Start working: Comment
/attempt #2456with your implementation plan -
Submit work: Create a pull request including
/claim #2456in the PR body to claim the bounty - Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts
❗ Important guidelines:
- To claim a bounty, you need to provide a short demo video of your changes in your pull request
- If anything is unclear, ask for clarification before starting as this will help avoid potential rework
- Low quality AI PRs will not receive review and will be closed
- Do not ask to be assigned unless you've contributed before
Thank you for contributing to traceloop/openllmetry!
| Attempt | Started (UTC) | Solution | Actions |
|---|---|---|---|
| 🔴 @akv2011 | Jan 02, 2025, 04:06:44 PM | WIP | |
| 🟢 @itsparser | Jan 02, 2025, 06:10:34 PM | WIP | |
| 🟢 @maliniv1530 | Jan 02, 2025, 07:31:59 PM | WIP | |
| 🟢 @gerred | Jan 02, 2025, 11:35:19 PM | WIP | |
| 🟢 @sanjay7178 | Jan 03, 2025, 03:35:43 AM | WIP | |
| 🔴 @SAIKIRANSURAPALLI | Jan 03, 2025, 05:57:40 AM | WIP | |
| 🟢 @aayushdhiman01 | Jan 05, 2025, 09:11:09 AM | WIP | |
| 🟢 @MrKrishnabhagat | Apr 09, 2025, 09:55:22 AM | #2809 | Reward |
| 🟢 @LuizDMM | Apr 10, 2025, 12:52:42 AM | #2810 | Reward |
| 🟢 @GauravSanMod | Jan 12, 2025, 10:09:03 AM | WIP | |
| 🟢 @naaa760 | Jan 18, 2025, 07:45:56 AM | WIP | |
| 🟢 @onyedikachi-david | Jan 22, 2025, 03:23:44 PM | #2541 | Reward |
@nirga is there a hard deadline to generate pr?
@akv2011 ideally by Monday 6/1
/attempt #2456
@nirga wanted to update progress Have implemented event logs and sdk implementation Working on tests. will raise pr by 8/1
Add an additional configuration option to control which types of events are emitted:
emit_prompt_events: Emit events for prompts (default: true).
emit_completion_events: Emit events for completions (default: true).
/bounty $1500
/attempt #2456
| Algora profile | Completed bounties | Tech | Active attempts | Options |
|---|---|---|---|---|
| @onyedikachi-david | 14 bounties from 7 projects | TypeScript, Python, JavaScript & more |
Cancel attempt |
💡 @onyedikachi-david submitted a pull request that claims the bounty. You can visit your bounty board to reward.
/attempt #2456
/attempt #2456
@nirga Is the issue still open? Would like to contribute.
🎉🎈 @LuizDMM has been awarded $750 by Traceloop (YC W23)! 🎈🎊