Skip to content

Commit

Permalink
docs: fix minor mistake in README (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw authored Feb 24, 2024
1 parent c0a01fd commit 7a33995
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 7a33995

Please sign in to comment.