Skip to content

Commit

Permalink
Fix typo and rename file
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonip committed Aug 15, 2024
1 parent 82e7526 commit 0699855
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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.

0 comments on commit 0699855

Please sign in to comment.