Przejdź do treści
Biblioteka skilli
DevOps i chmura · Analiza

investigate-opentelemetry

/investigate-opentelemetry

Bada logi i ślady OpenTelemetry w Altertable za pomocą SQL: debugowanie, korelacja śladów i łączenie z danymi biznesowymi.

Repozytorium
skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
20.10.2026

Ocena i bezpieczeństwo

95/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść30 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 20.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Bada logi i ślady OpenTelemetry w Altertable za pomocą SQL: debugowanie, korelacja śladów i łączenie z danymi biznesowymi.

Oryginalny opis (EN)

Investigates OpenTelemetry logs and traces in Altertable using SQL. Use when analysis involves observability data, including debugging, trace correlation, or joins with business data.

Jak działa

  1. Tables
  2. Narrow the Query
  3. Filter Attributes
  4. Search Messages
  5. Filter by Time
  6. Pivot by Trace ID
Sekcje z nagłówków SKILL.md, w oryginale · 96 linii, 246 słów
Podgląd SKILL.md
---
name: investigate-opentelemetry
compatibility: Requires Altertable MCP server
description: "Investigates OpenTelemetry logs and traces in Altertable using SQL. Use when analysis involves observability data, including debugging, trace correlation, or joins with business data."
metadata:
  author: Altertable
  requires: "altertable-mcp"
---

# Investigate OpenTelemetry Logs and Traces

Use SQL to investigate logs and traces.

## Tables

Logs:

```sql
opentelemetry.main.logs
```

Traces:

```sql
opentelemetry.main.spans
```

## Narrow the Query

Start with the smallest useful query: time range, environment, service or deployment, then error/trace filters.

## Filter Attributes

Resource attributes are stored in `resource_attributes` VARIANT. Span/log attributes are stored in `attributes` VARIANT.

Use `variant_extract` for filters:

```sql
variant_extract(resource_attributes, 'env') = 'production'
variant_extract(resource_attributes, 'k8s.pod.name') ILIKE 'api-%'
variant_extract(attributes, 'http.method') = 'POST'
variant_extract(attributes, 'http.route') = '/graphql'
```

For numeric attributes, cast before comparing:

```sql
TRY_CAST(variant_extract(attributes, 'http.status_code') AS INTEGER) >= 500
```

## Search Messages

Use the `@@` operator for full text search on indexed columns instead of `LIKE`/`ILIKE`. Only the `message` column is indexed for full text search:

```sql
message @@ 'timeout'
message @@ 'connection refused'
message @@ 'error'
```

## Filter by Time

Use `timestamp` for log time filters:

```sql
SELECT *
FROM opentelemetry.main.logs
WHERE timestamp >= now() - INTERVAL '1 hour'
  AND variant_extract(resource_attributes, 'env') = 'production'
  AND service_name = 'api'
ORDER BY timestamp DESC
LIMIT 500;
```

Use `start_time` for trace time filters:

```sql
SELECT *
FROM opentelemetry.main.spans
WHERE start_time >= now() - INTERVAL '1 hour'
  AND variant_extract(resource_attributes, 'env') = 'production'
  AND service_name = 'api'
ORDER BY start_time DESC
LIMIT 100;
```

## Pivot by Trace ID

Pivot by `trace_id` when available:

```sql
SELECT *
FROM opentelemetry.main.spans
WHERE trace_id = '<trace-id>'
ORDER BY start_time ASC;
```

```sql
SELECT *
FROM opentelemetry.main.logs
WHERE trace_id = '<trace-id>'
ORDER BY timestamp ASC;
```

Wersje

W bazie nie ma innych skilli o nazwie investigate-opentelemetry.

Migawka bazy z 28.10.2026 · wersja paczki db5da5c7b347 (skrót SHA-256 całej paczki)

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90opentelemetry
    Stosuje konwencje instrumentacji OpenTelemetry przy dodawaniu spanów, konfiguracji tracingu i pisaniu testów śladów.
  • 100opentelemetry
    Instrumentuje aplikacje i infrastrukturę w OpenTelemetry dla zunifikowanych śladów, metryk i logów, przy rozproszonym śledzeniu, diagnozowaniu usług i obserwowalności niezależnej od dostawcy.
  • 100opentelemetry
    Wdraża obserwowalność OpenTelemetry: konfigurację Collectora, wdrożenie w Kubernetes, potoki śladów, metryk i logów, instrumentację i diagnostykę problemów.
  • 100monitoring-observability
    Pomaga instrumentować usługi z OpenTelemetry, projektować logi, ślady i metryki, definiować SLO i alerty oraz debugować zachowanie produkcji na podstawie telemetrii.
  • 100azure-monitor-opentelemetry-ts
    Instrumentuje aplikacje Node.js przez Azure Monitor i OpenTelemetry dla JavaScript: rozproszone ślady, metryki i logi do Application Insights.
  • 100opentelemetry
    Wprowadza OpenTelemetry, niezależny od dostawcy framework obserwowalności systemów rozproszonych: ślady, metryki i logi ze standardową instrumentacją i eksporterami, w tym Jaeger i Prometheus.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.