From 354213e99b9d7c886b2568f3f642457f6dc07d67 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Thu, 22 Feb 2024 12:26:47 -0500 Subject: [PATCH] Fix minor mistake in README Noticed that this template string was missing a `$` character, so it won't interpolate this variable. This fixes the readme. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 12b9e32..55a9387 100644 --- a/README.md +++ b/README.md @@ -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: