semantic-conventions/specification/trace/semantic_conventions
Armin Ruech f6f5ce62ef Add semantic conventions for outgoing FaaS invocations (#862) 2020-09-02 17:18:46 +02:00
..
README.md Add link to exceptions from folder README (#795) 2020-08-13 07:33:39 -07:00
database.md Fix Redis sample (db.redis.database_index was missing) (#692) 2020-07-09 19:26:56 +02:00
exceptions.md Fix exception.stacktrace recommendation for Ruby. (#765) 2020-08-12 18:40:26 -07:00
faas.md Add semantic conventions for outgoing FaaS invocations (#862) 2020-09-02 17:18:46 +02:00
http.md YAML Model for Semantic Conventions (#571) 2020-08-27 13:18:51 -07:00
messaging.md Adapt semantic conventions for the span name of messaging systems (#690) 2020-07-15 13:14:56 -07:00
rpc.md Add peer.service semantic convention to indicate the name of a target… (#652) 2020-06-30 09:32:23 -07:00
span-general.md YAML Model for Semantic Conventions (#571) 2020-08-27 13:18:51 -07:00

README.md

Trace Semantic Conventions

In OpenTelemetry spans can be created freely and its up to the implementor to annotate them with attributes specific to the represented operation. Spans represent specific operations in and between systems. Some of these operations represent calls that use well-known protocols like HTTP or database calls. Depending on the protocol and the type of operation, additional information is needed to represent and analyze a span correctly in monitoring systems. It is also important to unify how this attribution is made in different languages. This way, the operator will not need to learn specifics of a language and telemetry collected from polyglot (multi-language) micro-service environments can still be easily correlated and cross-analyzed.

The following semantic conventions for spans are defined:

  • General: General semantic attributes that may be used in describing different kinds of operations.
  • HTTP: Spans for HTTP client and server.
  • Database: Spans for SQL and NoSQL client calls.
  • RPC/RMI: Spans for remote procedure calls (e.g., gRPC).
  • Messaging: Spans for interaction with messaging systems (queues, publish/subscribe, etc.).
  • FaaS: Spans for Function as a Service (e.g., AWS Lambda).
  • Exceptions: Attributes for recording exceptions associated with a span

Apart from semantic conventions for traces and metrics, OpenTelemetry also defines the concept of overarching Resources with their own Resource Semantic Conventions.