-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: support for new enrichment logic in traces #6438
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Changes requested. Reviewed everything up to f56c532 in 1 minute and 29 seconds
More details
- Looked at
477
lines of code in7
files - Skipped
0
files when reviewing. - Skipped posting
5
drafted comments based on config settings.
1. pkg/query-service/app/traces/v4/enrich.go:14
- Draft comment:
TheisEnriched
function has similar logic to the one inpkg/query-service/app/logs/v3/enrich_query.go
. Consider refactoring to a common utility function to avoid code duplication. - Reason this comment was not posted:
Confidence changes required:50%
The functionisEnriched
inpkg/query-service/app/traces/v4/enrich.go
andpkg/query-service/app/logs/v3/enrich_query.go
have similar logic but are implemented separately. This could lead to code duplication and maintenance challenges. Consider refactoring to a common utility function.
2. pkg/query-service/app/traces/v4/enrich.go:28
- Draft comment:
TheenrichKeyWithMetadata
function has similar logic toenrichFieldWithMetadata
inpkg/query-service/app/logs/v3/enrich_query.go
. Consider refactoring to a common utility function to avoid code duplication. - Reason this comment was not posted:
Confidence changes required:50%
TheenrichKeyWithMetadata
function inpkg/query-service/app/traces/v4/enrich.go
andenrichFieldWithMetadata
inpkg/query-service/app/logs/v3/enrich_query.go
have similar logic. Consider refactoring to a common utility function to avoid code duplication.
3. pkg/query-service/utils/logs.go:43
- Draft comment:
The comment still referencesTest_GenerateLogEnrichmentKeys
. Update it toTest_GenerateEnrichmentKeys
for consistency. - Reason this comment was not posted:
Comment looked like it was already resolved.
4. pkg/query-service/app/traces/v4/enrich.go:1
- Draft comment:
Avoid using thecomponent/index.tsx
file structure approach, as it makes it difficult to debug and find components using global search tools like VS Code. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable:
The comment is not relevant to the changes made in the diff. The file is a Go file, and there is no indication of acomponent/index.tsx
structure being used. The comment seems misplaced.
I might be missing some context about the project structure, but based on the provided diff, the comment does not seem applicable.
The comment is about a file structure approach that is not evident in the provided Go file. It seems to be misplaced or irrelevant to the current changes.
The comment is not relevant to the changes made in the diff and should be deleted.
5. pkg/query-service/app/traces/v4/enrich.go:28
-
Draft comment:
This function appears to be a duplicate of an existing function inpkg/query-service/app/traces/v3/query_builder.go
. Consider refactoring to use the existing function or extending it to cover this use case. -
function
enrichKeyWithMetadata
(query_builder.go) -
Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_0odxnd75cLc888mv
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
@nityanandagohain, we should have the table schema-based logic in the traces as well. For example, if I create a |
It will be clear when I create a further PR (integration), but it's already in place. If i have a key named
And the resource query builder wich is already integrated will take care of it. |
Where exactly does this happen? How does it know there is a mat column |
If you see the logs existing code, there is a function named |
In case my question is not clear, I am asking where is it done for traces #6438 (comment)? |
As I mentioned, it will be added in further PR's that integrates this Enrichment function. And there the logic for getting the This PR takes care that, given I have the |
bear with me; please help me understand the breakdown. What is done in this PR, and what is coming in the next set of PRs and what are those PRs? I could neither understand any of that from the PR description nor is it highlighted in the linked issue. |
have updated the description with the next set of things that are coming. |
Please fix the build-pipeline |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Changes requested. Incremental review on 87a4b97 in 18 seconds
More details
- Looked at
27
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. pkg/query-service/utils/logs_test.go:100
- Draft comment:
t.Errorf("GenerateEnrichmentKeys() = %v, want %v", got, tt.want)
- Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_OPzmgoH7axeQcSyu
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
Support for new enrichment logic.
Part of #5713
Missing scope:-
In future we can try to merge the enrich logic of logs and traces but for now I am keeping it separete.
Important
Adds new enrichment logic for traces, supporting multiple data types and formats, with updated tests and constants.
enrich.go
, supporting multiple data types and formats.serviceName
withservice.name
in trace filters.EnrichTracesQuery()
andenrichKeyWithMetadata()
inenrich.go
for trace enrichment.GenerateLogEnrichmentKeys()
toGenerateEnrichmentKeys()
inlogs.go
.StaticFieldsTraces
inconstants.go
with new fields likeresponse_status_code
andexternal_http_url
.enrich_test.go
for testing trace enrichment logic.query_builder_test.go
with new test cases for trace queries.This description was created by for 87a4b97. It will automatically update as commits are pushed.