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

Fix typo and rename file #345

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 4 additions & 4 deletions input/elasticapm/internal/modeldecoder/rumv3/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func mapToErrorModel(from *errorEvent, event *modelpb.APMEvent) {
len(from.Log.Stacktrace),
modelpb.StacktraceFrameFromVTPool,
)
mapToStracktraceModel(from.Log.Stacktrace, log.Stacktrace)
mapToStacktraceModel(from.Log.Stacktrace, log.Stacktrace)
}
out.Log = log
}
Expand Down Expand Up @@ -320,7 +320,7 @@ func mapToExceptionModel(from *errorException, out *modelpb.Exception) {
len(from.Stacktrace),
modelpb.StacktraceFrameFromVTPool,
)
mapToStracktraceModel(from.Stacktrace, out.Stacktrace)
mapToStacktraceModel(from.Stacktrace, out.Stacktrace)
}
if from.Type.IsSet() {
out.Type = from.Type.Val
Expand Down Expand Up @@ -693,7 +693,7 @@ func mapToSpanModel(from *span, event *modelpb.APMEvent) {
len(from.Stacktrace),
modelpb.StacktraceFrameFromVTPool,
)
mapToStracktraceModel(from.Stacktrace, out.Stacktrace)
mapToStacktraceModel(from.Stacktrace, out.Stacktrace)
}
if from.Sync.IsSet() {
val := from.Sync.Val
Expand All @@ -706,7 +706,7 @@ func mapToSpanModel(from *span, event *modelpb.APMEvent) {
}
}

func mapToStracktraceModel(from []stacktraceFrame, out []*modelpb.StacktraceFrame) {
func mapToStacktraceModel(from []stacktraceFrame, out []*modelpb.StacktraceFrame) {
for idx, eventFrame := range from {
fr := out[idx]
if eventFrame.AbsPath.IsSet() {
Expand Down
2 changes: 1 addition & 1 deletion input/otlp/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (c *Consumer) convertLogRecord(
})

// NOTE: we consider an error anything that contains an exception type
// or message, indipendently from the severity level.
// or message, independent of the severity level.
if exceptionMessage != "" || exceptionType != "" {
event.Error = convertOpenTelemetryExceptionSpanEvent(
exceptionType, exceptionMessage, exceptionStacktrace,
Expand Down
File renamed without changes.
Loading