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(structured-metadata-api): add structured metadata to /detected_fields API #13604

Merged
merged 3 commits into from
Jul 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(structured-metadata-api): move emptyparser
  • Loading branch information
svennergr committed Jul 22, 2024
commit b5b1b63f4a3848dcac7f3b3dbfe51a010ad35c37
2 changes: 1 addition & 1 deletion pkg/querier/querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,7 @@ func determineType(value string) logproto.DetectedFieldType {
func parseDetectedFields(ctx context.Context, limit uint32, streams logqlmodel.Streams) map[string]*parsedFields {
detectedFields := make(map[string]*parsedFields, limit)
fieldCount := uint32(0)
emtpyparser := ""

for _, stream := range streams {
level.Debug(spanlogger.FromContext(ctx)).Log(
Expand All @@ -1221,7 +1222,6 @@ func parseDetectedFields(ctx context.Context, limit uint32, streams logqlmodel.S

for _, entry := range stream.Entries {
structuredMetadata := getStructuredMetadata(entry)
emtpyparser := ""
for k, vals := range structuredMetadata {
df, ok := detectedFields[k]
if !ok && fieldCount < limit {
Expand Down
Loading