Sygnały i konwencje semantyczne
Poznają Państwo trzy sygnały OpenTelemetry, sposób współdzielenia przez nie zasobów i kontekstu oraz to, dlaczego konwencje semantyczne zapewniają przenośność telemetrii między narzędziami.
Sygnały i konwencje semantyczne to bezpłatna lekcja System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) na CoddyKit. To lekcja 4 z 4. Możesz przeczytać całą lekcję poniżej za darmo — a potem ćwiczyć ją interaktywnie w przeglądarce z wbudowanym edytorem kodu i tutorem AI dostępnym 24/7. To część ścieżki edukacyjnej System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry), a Twój postęp synchronizuje się między webem a aplikacją CoddyKit. Kurs System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) zawiera 4 lekcji w sumie.
Części tej lekcji nie zostały jeszcze przetłumaczone i są wyświetlane po angielsku.
The Three Signals
OpenTelemetry defines three signals of telemetry: traces, metrics, and logs. One specification and SDK produce all three in a consistent way.
Traces
Traces capture the path of a request across services as a tree of spans, answering where time went and what failed.
span: GET /checkout
span: query inventory
span: charge paymentMetrics
Metrics are numeric measurements aggregated over time: counters, gauges, and histograms that answer how much and how often.
http.server.duration histogram
http.server.active_requests gaugeLogs
Logs are timestamped records of discrete events. In OTel they can be correlated with traces by carrying the same trace and span IDs.
{ "body": "order placed", "trace_id": "a9f...c1" }The Resource
A Resource describes the entity producing telemetry, such as a service or host. It is attached to all three signals so they share identity.
resource:
service.name: checkout
service.version: 1.4.0Shared Context
All signals can carry the same context. A log and a metric exemplar can point back to the trace that produced them, enabling correlation.
What Are Semantic Conventions?
Semantic conventions are agreed names for common attributes. Everyone uses http.request.method instead of inventing their own key.
Why Conventions Matter
Standard names let any backend understand your data. Dashboards, alerts, and tools work out of the box because the keys are predictable.
- Portability across vendors
- Reusable dashboards
- Automatic correlation
Common Attribute Examples
Conventions cover HTTP, databases, messaging, and more.
http.request.method = "GET"
http.response.status_code = 200
db.system = "postgresql"Resource vs Span Attributes
Resource attributes describe the producer and rarely change. Span attributes describe a single operation and vary per request.
resource: service.name (static)
span: http.route, user.tier (per request)Signals Together
Combining the three signals with shared resources and conventions gives full observability: metrics show what is wrong, traces show where, and logs show why.
Quick Check
Identify the purpose of semantic conventions.
Recap
You learned the three OTel signals (traces, metrics, logs), how a shared Resource and context tie them together, and how semantic conventions standardize attribute names for portability and correlation across any backend.
Ucz się System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) dzięki korepetycjom AI — za darmo
Pisz i uruchamiaj kod w przeglądarce, otrzymuj natychmiastową pomoc od korepetytora AI dostępnego 24/7 i kontynuuj naukę w sieci lub w aplikacji.
- Kursy
- 12
- Lekcje
- 48
Często zadawane pytania
Czy lekcja „Sygnały i konwencje semantyczne” jest bezpłatna?
Tak — pełny tekst „Sygnały i konwencje semantyczne” jest dostępny za darmo tutaj w sieci. Aby ćwiczyć ją interaktywnie (wbudowany edytor kodu i tutor AI dostępny 24/7) i odblokować resztę kursu System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry), przejdź na CoddyKit PRO. Kurs System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) zawiera 4 lekcji w sumie.
Co nauczysz się w „Sygnały i konwencje semantyczne”?
Poznają Państwo trzy sygnały OpenTelemetry, sposób współdzielenia przez nie zasobów i kontekstu oraz to, dlaczego konwencje semantyczne zapewniają przenośność telemetrii między narzędziami. Ćwiczysz System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) z praktycznym kodem, który uruchamiasz bezpośrednio w przeglądarce, a tutor AI dostępny 24/7 odpowiada na Twoje pytania podczas pracy nad lekcją.
Czy potrzebuję doświadczenia, aby zacząć System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)?
Nie wymagamy żadnego doświadczenia. System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) w CoddyKit jest strukturyzowany dla początkujących i zaawansowanych użytkowników, więc możesz zacząć tutaj lub od początku i uczyć się w swoim tempie. To lekcja 4 z 4.
Ile czasu zajmuje lekcja „Sygnały i konwencje semantyczne”?
Większość lekcji CoddyKit trwa około 5–10 minut. Każda lekcja to mały, interaktywny krok, dzięki czemu robisz systematyczne postępy i zawsze wracasz dokładnie do tego samego miejsca — na webie i w aplikacji.
Czy mogę pisać i uruchamiać kod w tej lekcji System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)?
Tak. Każda lekcja System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) zawiera wbudowany edytor kodu, więc piszesz i uruchamiasz prawdziwy kod bezpośrednio w przeglądarce i od razu otrzymujesz sprzężenie zwrotne od AI — bez konfiguracji na komputerze.
Wszystkie lekcje w tym kursie
- Standard OpenTelemetry
- Kolektory i eksportery OTel
- Instrumentacja aplikacji za pomocą SDK OTel
- Sygnały i konwencje semantyczne