Skip to content

Commit

Permalink
Fix minor mistake in README
Browse files Browse the repository at this point in the history
Noticed that this template string was missing a `$` character, so it won't interpolate this variable. This fixes the readme.
  • Loading branch information
tmcw authored Feb 22, 2024
1 parent c0a01fd commit 354213e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ The plugin accepts the the following configuration properties:

- **`exposeApi` : `boolean`** - Used to prevent the plugin from decorating the request. By default the request will be decorated (i.e. defaults to `true`).

- **`formatSpanName` : `(FastifyRequest) => string`** - Custom formatter for the span name. The default format is ``` `${req.method} {req.routeOptions.url}` ```.
- **`formatSpanName` : `(FastifyRequest) => string`** - Custom formatter for the span name. The default format is ``` `${req.method} ${req.routeOptions.url}` ```.

- **`formatSpanAttributes` : `object`** - Contains formatting functions for span attributes. *Properties*:
- **`request`: `(FastifyRequest) => object`** - On request, the returned object will be added to the current span's attributes. The default request attributes are:
Expand Down

0 comments on commit 354213e

Please sign in to comment.