Skip to content
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(ourlogs): Add trace items attributes endpoints #87343

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

k-fish
Copy link
Member

@k-fish k-fish commented Mar 18, 2025

Summary

Since logs and spans (etc.) are moving towards the generic trace items, this adds an endpoint for use with search autocomplete on the frontend, which we can eventually use for any search relating to eap items.

This mostly ports the EAP side of the /spans/fields/ endpoints (organization_spans_fields.py) and makes both endpoints accept an item_type in lieu of dataset. Returning all attr keys and fetching attr values are not yet supported for EAP trace items (see skipped tests).

Since logs and spans (etc.) are moving towards the generic trace items, this adds an endpoint for use with search autocomplete on the frontend. This ports the EAP side of /spans/fields and makes both sides accept an item_type in lieu of dataset. Attribute values are not yet supported for EAP trace items.
@k-fish k-fish requested review from a team as code owners March 18, 2025 21:10
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 18, 2025
Copy link
Member

@wmak wmak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link

codecov bot commented Mar 18, 2025

Codecov Report

Attention: Patch coverage is 75.48638% with 63 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...pi/endpoints/organization_trace_item_attributes.py 69.67% 47 Missing ⚠️
...dpoints/test_organization_trace_item_attributes.py 83.83% 16 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #87343      +/-   ##
==========================================
+ Coverage   87.73%   87.80%   +0.06%     
==========================================
  Files        9865     9872       +7     
  Lines      558997   559548     +551     
  Branches    22041    22041              
==========================================
+ Hits       490453   491302     +849     
+ Misses      68113    67815     -298     
  Partials      431      431              

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants