Skip to content

Commit

Permalink
fix headings for trace properties
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Oct 26, 2024
1 parent 08b74fa commit 3882774
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book/src/producing-events/tracing/properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Notice the `span_parent` of `inner_span` is the same as the `span_id` of `outer_

Properties aren't limited to strings; they can be arbitrarily complex structured values. See the following sections and [Value data model](../../reference/events.md#value-data-model) for more details.

## Using `fmt::Debug`
### Using `fmt::Debug`

If you want to log a type that implements `Debug`, you can apply the [`#[as_debug]`](../../reference/property-attributes.md#as_debug) attribute to it to capture it with its debug format:

Expand All @@ -115,7 +115,7 @@ fn greet(user: &User) {
}
```

## Using `serde::Serialize`
### Using `serde::Serialize`

If you want to log a type that implements `Serialize`, you can apply the [`#[as_serialize]`](../../reference/property-attributes.md#as_serialize) attribute to it to capture it as a structured value:

Expand Down

0 comments on commit 3882774

Please sign in to comment.