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

Field "parent_span_id" is not indexed in otel traces index #5122

Closed
Sh4d1 opened this issue Jun 13, 2024 · 7 comments
Closed

Field "parent_span_id" is not indexed in otel traces index #5122

Sh4d1 opened this issue Jun 13, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@Sh4d1
Copy link

Sh4d1 commented Jun 13, 2024

Describe the bug
I get a 500 when filtering on the parent_span_id:

Error: { "message": "internal error: `(internal error: `tantivy error: Schema error: 'Field \"parent_span_id\" is not indexed.'`, split_id: 01J08YXJCERKN0JK3BYWNPB8A0), (internal error: [...]

Steps to reproduce (if applicable)
Steps to reproduce the behavior:

  1. Create an otel index for traces
  2. Filter on the parent_span_id field

Expected behavior
A working search

Configuration:
I'm running the helm chart, version 0.5.15

@Sh4d1 Sh4d1 added the bug Something isn't working label Jun 13, 2024
@fmassot fmassot assigned rdettai and unassigned guilload Jul 14, 2024
@rdettai
Copy link
Contributor

rdettai commented Jul 25, 2024

Hi Patrik! Could you tell us a bit more about your usecase. In general, it is not necessary to have indices on spans because when you know a span_id you usually also know its trace_id, so you can query an entire trace by its id then perform the span search locally. Adding an extra index isn't free, so I want to make sure there isn't an efficient workaround.

@Sh4d1
Copy link
Author

Sh4d1 commented Jul 25, 2024

@rdettai hey! Yeah, it's to perform some listing on the traces (ie list only the top level traces, and do some operation of them), not sure I'm clear!

@rdettai
Copy link
Contributor

rdettai commented Jul 25, 2024

Are you saying you are expecting a span tree that has multiple trace ids?

@Sh4d1
Copy link
Author

Sh4d1 commented Jul 25, 2024

Nop, but the trace ID is on all the spans, so I can't query all root IDs. What I'm doing is kinda a log dashboard, but with top level spans

@rdettai
Copy link
Contributor

rdettai commented Jul 25, 2024

Ok, understood. Using the presence or absence of the parent_span_id is your way of getting the root spans, right? I think the usual way to do this is by using span_name. Is that not possible for you?

@Sh4d1
Copy link
Author

Sh4d1 commented Jul 25, 2024

It could be possible but not that practical! But I ended up rolling my own index (yay retention 😄), so I'm not sure it should be needed as a default!

@rdettai
Copy link
Contributor

rdettai commented Jul 25, 2024

I'll close this then. Let's see if this is requested again!

@rdettai rdettai closed this as completed Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

3 participants