chatwoot/spec/lib
Aakash Bakhle eaffad12e7
feat(langfuse): propagate observation metadata for evals (#14634)
# Pull Request Template

## Description

We need to pass on trace level attributes down to the spans inside them
like tool calls, observations, etc.
This way, we can filter observations based on trace level attributes.


## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration.

Attributes added to observation metadata for easy filtering
<img width="1327" height="708" alt="image"
src="https://github.com/user-attachments/assets/8f1d1bf8-cde4-481d-a2c2-7920ad2fc52e"
/>

added a `generation_stage` to differentiate llm_calls that call tools vs
those that generate a `final_response`
<img width="1806" height="968" alt="CleanShot 2026-06-03 at 15 11 09@2x"
src="https://github.com/user-attachments/assets/db1fa8e0-7f2d-404b-a719-27a16d400442"
/>


propagated attributes to tool calls for future use
<img width="903" height="517" alt="image"
src="https://github.com/user-attachments/assets/edc61ce8-93db-465c-a66e-043138e2dc15"
/>



## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] Any dependent changes have been merged and published in downstream
modules
2026-06-03 16:45:19 +05:30
..
captain fix: validate OpenAI hook credentials (#14068) 2026-05-18 14:08:57 +05:30
email_templates chore: Enable the new Rubocop rules (#7122) 2023-05-19 14:37:10 +05:30
integrations feat(langfuse): propagate observation metadata for evals (#14634) 2026-06-03 16:45:19 +05:30
redis feat: base layer for unread counts (store, counter and builder) (1/3)[CW-6851] (#14368) 2026-05-20 14:26:21 +05:30
webhooks fix: [CW-6940] Fix SSRF issue for webhook trigger used by macros and automations (#14155) 2026-04-27 20:30:59 +05:30
base_markdown_renderer_spec.rb feat: inline images in website and email channels (#14516) 2026-06-03 15:05:17 +05:30
chatwoot_captcha_spec.rb chore: Update dependencies to the latest versions (#5033) 2022-07-15 09:51:59 +07:00
chatwoot_exception_tracker_spec.rb chore: Load only required APMs (#6497) 2023-03-01 14:31:51 +05:30
chatwoot_hub_spec.rb chore(hub): clean up legacy Captain hub flow (#13640) 2026-02-24 20:29:53 -08:00
chatwoot_markdown_renderer_spec.rb fix: Email Channel links are not working (backend) (#13898) 2026-03-26 21:44:57 -07:00
config_loader_spec.rb Feature: Installation global config (#839) (#840) 2020-05-10 22:40:36 +05:30
custom_markdown_renderer_spec.rb feat: add image resize support in articles (#14293) 2026-05-19 19:34:43 +05:30
dyte_spec.rb feat: Upgrade Dyte apis to v2 (#10706) 2025-02-19 14:47:48 -08:00
global_config_service_spec.rb chore: Update dependencies to the latest versions (#5033) 2022-07-15 09:51:59 +07:00
global_config_spec.rb Feature: Global Config helper (#844) (#845) 2020-05-11 19:00:33 +05:30
linear_spec.rb feat(linear): Support refresh tokens and migrate legacy OAuth tokens (#13721) 2026-03-17 13:09:03 +04:00
online_status_tracker_spec.rb perf: reduce presence update frequency and fix background tab throttling (#13726) 2026-03-09 18:23:44 +05:30
safe_fetch_spec.rb fix: Support allowlisted private API inbox webhooks (#14548) 2026-05-26 17:03:19 +05:30
vapid_service_spec.rb feat: migrate facebook env vars to globalConfig (#3369) 2021-11-25 00:55:26 +05:30