-
Notifications
You must be signed in to change notification settings - Fork 208
Feature: Generate function and extension logs via Telemetry API receiver #1347
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
Changes from 1 commit
bd5dd05
63558a8
1ae4fdd
0f74cbe
0c54292
dd2e317
13a99af
4ff5876
730cfc9
999a7ce
1190cb5
165cdda
26a3c68
16f92d1
2575871
a297035
2d33076
cdea000
166628a
2e03ffe
3b7cda5
1bc05fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -212,7 +212,7 @@ func (r *telemetryAPIReceiver) createLogs(slice []event) (plog.Logs, error) { | |
} | ||
} | ||
if level, ok := record["level"].(string); ok { | ||
logRecord.SetSeverityNumber(severityTextToNumber(level)) | ||
logRecord.SetSeverityNumber(severityTextToNumber(strings.ToUpper(level))) | ||
logRecord.SetSeverityText(logRecord.SeverityNumber().String()) | ||
} | ||
if requestId, ok := record["requestId"].(string); ok { | ||
|
@@ -260,6 +260,7 @@ func severityTextToNumber(severityText string) plog.SeverityNumber { | |
"FATAL4": plog.SeverityNumberFatal4, | ||
"CRITICAL": plog.SeverityNumberFatal, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding |
||
"ALL": plog.SeverityNumberTrace, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding |
||
"WARNING": plog.SeverityNumberWarn, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding Example
|
||
} | ||
if ans, ok := mapping[strings.ToUpper(severityText)]; ok { | ||
return ans | ||
|
Uh oh!
There was an error while loading. Please reload this page.