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/images #107

Merged
merged 2 commits into from
Jan 17, 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
26 changes: 24 additions & 2 deletions content/posts/observability-from-zero-to-hero.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,14 @@ After restarting your application:
```bash
gradle bootRun
```

You can now get logs browsing Grafana reaching this URL: [http://localhost:3000/goto/M-VkkicSR?orgId=1](http://localhost:3000/goto/M-VkkicSR?orgId=1) and running some API calls with the following command:
After running some API calls with the following command:

```bash
http :8080/api/events
```
You can now get logs browsing Grafana

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

## Traces

Expand Down Expand Up @@ -292,8 +294,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.
Loading