Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand the language-agnostic trace attributes section #1550

Merged
merged 1 commit into from
Jul 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions content/en/docs/concepts/signals/traces.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,22 @@ requires Span Context to travel across service and process boundaries.
Attributes are key-value pairs that contain metadata that you can use to
annotate a Span to carry information about the operation it is tracking.

For example, if a span tracks an operation that adds an item to a user's
shopping cart in an eCommerce system, you can capture the user's ID, the ID of
the item to add to the cart, and the cart ID.

Attributes have the following rules that each language SDK implements:

* Keys must be non-null string values
* Values must be a non-null string, boolean, floating point value, integer, or
an array of these values

Additionally, there are [Semantic
Attributes](/docs/reference/specification/trace/semantic_conventions/), which
are known naming conventions for metadata that is typically present in common
operations. It's helpful to use semantic attribute naming wherever possible
so that common kinds of metadata is standardized across systems.

### Span Events

A Span Event can be thought of as a structured log message (or annotation) on a
Expand Down