Skip to content

Commit d1b7316

Browse files
committed
chore: Added new configuration to enable and exclude labels from being added to application logs in Node.js agent
1 parent e214d04 commit d1b7316

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed

src/content/docs/apm/agents/nodejs-agent/installation-configuration/nodejs-agent-configuration.mdx

+82
Original file line numberDiff line numberDiff line change
@@ -4260,6 +4260,88 @@ For tips on configuring logs for the Node.js agent, see [Configure Node.js logs
42604260
If after all the logs for sampled transactions are recorded, and they haven't reached the limit in `max_samples_stored`, then log messages for transactions that were not in our sampling are sent. If there are any left, log messages outside of transactions are recorded.
42614261
</Collapser>
42624262

4263+
<Collapser
4264+
id="application-logging-forwarding-labels"
4265+
title="application_logging.forwarding.labels.enabled"
4266+
>
4267+
<table>
4268+
<tbody>
4269+
<tr>
4270+
<th>
4271+
Type
4272+
</th>
4273+
4274+
<td>
4275+
Boolean
4276+
</td>
4277+
</tr>
4278+
4279+
<tr>
4280+
<th>
4281+
Default
4282+
</th>
4283+
4284+
<td>
4285+
false
4286+
</td>
4287+
</tr>
4288+
4289+
<tr>
4290+
<th>
4291+
[Environ variable](#environment)
4292+
</th>
4293+
4294+
<td>
4295+
`NEW_RELIC_APPLICATION_LOGGING_FORWARDING_LABELS_ENABLED`
4296+
</td>
4297+
</tr>
4298+
</tbody>
4299+
</table>
4300+
4301+
Toggles whether the agent will add labels to log records for sending to New Relic.
4302+
</Collapser>
4303+
4304+
<Collapser
4305+
id="application-logging-forwarding-labels-exclude"
4306+
title="application_logging.forwarding.labels.exclude"
4307+
>
4308+
<table>
4309+
<tbody>
4310+
<tr>
4311+
<th>
4312+
Type
4313+
</th>
4314+
4315+
<td>
4316+
Array
4317+
</td>
4318+
</tr>
4319+
4320+
<tr>
4321+
<th>
4322+
Default
4323+
</th>
4324+
4325+
<td>
4326+
[]
4327+
</td>
4328+
</tr>
4329+
4330+
<tr>
4331+
<th>
4332+
[Environ variable](#environment)
4333+
</th>
4334+
4335+
<td>
4336+
`NEW_RELIC_APPLICATION_LOGGING_FORWARDING_LABELS_EXCLUDE`
4337+
</td>
4338+
</tr>
4339+
</tbody>
4340+
</table>
4341+
4342+
A case-insensitive list of label names to exclude when you enable including labels in logs. This attribute does not support wildcards or regex.
4343+
</Collapser>
4344+
42634345
<Collapser
42644346
id="application-logging-local_decorating-enabled"
42654347
title="application_logging.local_decorating.enabled"

0 commit comments

Comments
 (0)