agardnerIT / agardnerIT/badtrace

[SCENARIO] Dropped Events

Aperta
#2 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
1
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Add a scenario to demonstrate a trace containing spans that has some dropped events. Demonstrated by a non-zero value in the `droppedEventsCount` field.

I've also raised ([here](https://github.com/open-telemetry/opentelemetry-proto/issues/745)) that the documentation about when / why things are "dropped" is either incomplete or hard to find so it's hard for end users to understand why an event might be dropped.

## Example JSON

```
{
"traceId": trace_id,
"spanId": secrets.token_hex(8),
"name": "span",
"kind": "SPAN_KIND_UNSPECIFIED",
"start_time_unix_nano": span_start_time,
"end_time_unix_nano": span_end_time,
"droppedAttributesCount": 0,
"attributes": [],
"events": [],
"droppedEventsCount": 21,
"status": {
"code": get_span_status_int("OK")
}
}
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.