System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) · Aula

Sinais e convenções semânticas

Aprenda os três sinais do OpenTelemetry, como eles compartilham recursos e contexto e por que as convenções semânticas tornam a telemetria portátil entre ferramentas.

Aula 4 de 413 etapas

Sinais e convenções semânticas é uma aula grátis de System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) no CoddyKit. Esta é a aula 4 de 4. Você pode ler a aula completa abaixo gratuitamente — depois pratica ao vivo no navegador com um editor de código integrado e um tutor de IA 24/7. Faz parte do caminho de aprendizado de System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry), e seu progresso é sincronizado entre a web e o app CoddyKit. O curso de System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) inclui 4 aulas no total.

Partes desta aula ainda não foram traduzidas e aparecem em inglês.

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 payment

Metrics

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 gauge

Logs

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.0

Shared 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.

Grátis para começar

Aprenda System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) com um tutor de IA — grátis

Escreva e execute código real no seu navegador, obtenha ajuda instantânea de um tutor de IA 24/7 e continue de onde parou na web ou no app.

Cursos
12
Aulas
48

Perguntas Frequentes

A aula “Sinais e convenções semânticas” é grátis?

Sim — o texto completo de “Sinais e convenções semânticas” é grátis para ler aqui na web. Para praticá-la interativamente (um editor de código integrado e um tutor de IA 24/7) e desbloquear o restante do curso de System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry), atualize para CoddyKit PRO. O curso de System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) inclui 4 aulas no total.

O que vou aprender em “Sinais e convenções semânticas”?

Aprenda os três sinais do OpenTelemetry, como eles compartilham recursos e contexto e por que as convenções semânticas tornam a telemetria portátil entre ferramentas. Você pratica System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) com código prático que executa diretamente no navegador, e um tutor de IA 24/7 responde suas dúvidas enquanto trabalha na aula.

Preciso ter experiência prévia para começar System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)?

Nenhuma experiência prévia é necessária. System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) no CoddyKit é estruturado para alunos iniciantes até avançados, então você pode começar aqui ou desde o início e aprender no seu ritmo. Esta é a aula 4 de 4.

Quanto tempo leva a aula “Sinais e convenções semânticas”?

A maioria das aulas CoddyKit leva cerca de 5–10 minutos. Cada uma é compacta e interativa, então você faz progresso constante e retoma exatamente de onde parou entre web e app.

Posso escrever e executar código nesta aula de System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)?

Sim. Cada aula de System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) inclui um editor de código integrado, então você escreve e executa código real direto no navegador e recebe feedback de IA instantaneamente — nenhuma configuração local necessária.

Todas as aulas deste curso

  1. O padrão OpenTelemetry
  2. Coletores e exportadores do OTel
  3. Instrumentação de aplicações com SDKs do OTel
  4. Sinais e convenções semânticas
← Voltar para System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)