elastic / elastic/apm-agent-python

stacktrace frame vars reported as NaN

Aperta
#1,886 5 commenti 1 reazione 1 assegnatario Rivendicata da @xrmx Vedi su GitHub
8.12-candidate agent-python bug upstream
Lingua principale
Python
Stelle
431
Fork
239
Merge medio
5g 10h
PR unite (30g)
7

Descrizione

**Describe the bug**:

As part of the ops KPI review we've been investigating the following errors in ecs logs:

```
decode error: data read error: v2.errorRoot.Error: v2.errorEvent.Exception: v2.errorException.Stacktrace: []v2.stacktraceFrame: v2.stacktraceFrame.Vars: Read: unexpected value type: 0, error found in #10 byte of ...|length": [NaN, NaN, |..., bigger context ...| redacted ...", "common_length": [NaN, NaN, NaN, NaN, NaN, NaN, 27.0, 76.0, 76.0, 76|...
```

`vars` is defined as a flat mapping of local variables but `NaN` is not a valid type.

**To Reproduce**

I don't have steps to reproduce, this is part of the ops KPI review and was observed in the ecs logs.

**Environment (please complete the following information)**

The error has been observed in the following agent versions:
- apm-agent-python/6.18.0
- apm-agent-python/6.15.1
- apm-agent-python/6.13.2
- apm-agent-python/6.12.0
- apm-agent-python/6.10.0
- apm-agent-python/6.7.2
- elasticapm-python/5.10.1
- elasticapm-python/5.10.0

This happens on multiple apm-server versions.

**Additional context**

none

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.