Skip to content

Commit

Permalink
fix: add pictures
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-touret committed Jan 17, 2024
1 parent 331bfec commit e4b7ec3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions content/posts/observability-from-zero-to-hero.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ You can now get logs browsing Grafana reaching this URL: [http://localhost:3000/
```bash
http :8080/api/events
```
![Loki](/assets/images/2024/01/Loki-Grafana.webp)

## Traces

Expand Down Expand Up @@ -292,8 +293,28 @@ public ResponseEntity<ObservabilityEventDto> getEvent() throws ErrorResponseExce
}
```

Using Problem Detail responses, you will get such a response when an error occurs:

```bash
http :8080/api/events
HTTP/1.1 500
Connection: close
Content-Type: application/problem+json
Date: Wed, 17 Jan 2024 08:09:20 GMT
Transfer-Encoding: chunked

{
"instance": "/api/events",
"status": 500,
"title": "Internal Server Error",
"type": "about:blank"
}
```

After testing this service a few times, you can now see the traces on your Grafana dashboard.

![Tempo](/assets/images/2024/01/Tempo-Grafana.webp)

### Head or Tail sampling?

One significant drawback of implementing this technology lies in the potential performance overhead it introduces to the instrumented application. In cases where high-pressure APIs generate or broadcast SPANs for every transaction, there's a substantial risk of significantly impacting the [Service Level Objectives (SLOs)](https://sre.google/sre-book/service-level-objectives/) of your platform.
Expand Down
Binary file added static/assets/images/2024/01/Loki-Grafana.webp
Binary file not shown.
Binary file added static/assets/images/2024/01/Tempo-Grafana.webp
Binary file not shown.

0 comments on commit e4b7ec3

Please sign in to comment.