Segnali e convenzioni semantiche
Scopra i tre segnali OpenTelemetry, come condividano risorse e contesto e perché le convenzioni semantiche rendano la telemetria portabile tra gli strumenti.
Segnali e convenzioni semantiche è una lezione System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) gratuita su CoddyKit. Questa è la lezione 4 di 4. Puoi leggere la lezione completa qui gratuitamente — poi esercitati direttamente nel browser con un editor di codice integrato e un tutor IA disponibile 24/7. Fa parte del percorso di apprendimento System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry), e i tuoi progressi si sincronizzano tra il web e l'app CoddyKit. Il corso System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) include 4 lezioni in totale.
Parti di questa lezione non sono ancora state tradotte e vengono mostrate in inglese.
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.
Impara System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) con un tutor IA — gratis
Scrivi ed esegui vero codice nel tuo browser, ricevi aiuto istantaneo da un tutor IA disponibile 24/7, e riprendi da dove hai lasciato sul web o nell'app.
- Corsi
- 12
- Lezioni
- 48
Domande Frequenti
La lezione «Segnali e convenzioni semantiche» è gratuita?
Sì — il testo completo di «Segnali e convenzioni semantiche» è gratuito qui sul web. Per esercitarvi in modo interattivo (un editor di codice integrato e un tutor IA 24/7) e sbloccare il resto del corso System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry), passa a CoddyKit PRO. Il corso System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) include 4 lezioni in totale.
Cosa imparerò in «Segnali e convenzioni semantiche»?
Scopra i tre segnali OpenTelemetry, come condividano risorse e contesto e perché le convenzioni semantiche rendano la telemetria portabile tra gli strumenti. Eserciti System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) con codice pratico che esegui direttamente nel browser, e un tutor IA 24/7 risponde alle tue domande mentre lavori sulla lezione.
Ho bisogno di esperienza per iniziare System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)?
Non è richiesta alcuna esperienza precedente. System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) su CoddyKit è strutturato per principianti e studenti avanzati, quindi puoi iniziare da qui o dall'inizio e procedere al tuo ritmo. Questa è la lezione 4 di 4.
Quanto tempo richiede la lezione «Segnali e convenzioni semantiche»?
La maggior parte delle lezioni CoddyKit richiede circa 5–10 minuti. Ogni lezione è breve e interattiva, quindi fai progressi costanti e riprendi esattamente da dove hai lasciato su web e app.
Posso scrivere ed eseguire codice in questa lezione System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)?
Sì. Ogni lezione System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) include un editor di codice integrato, quindi scrivi ed esegui codice reale direttamente nel tuo browser e ricevi feedback istantaneo dall'IA — nessuna configurazione locale necessaria.
Tutte le lezioni di questo corso
- Lo standard OpenTelemetry
- Collector ed exporter di OTel
- Strumentazione delle app con gli SDK OTel
- Segnali e convenzioni semantiche