Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daily release/oct 22 2024 11 04 #19035

Merged
merged 69 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
6a5b7c4
Create agent-overhead-reduction-tips.mdx
zsistla Sep 16, 2024
cf53c26
fix(discovery): fix docs related to discovery
paologallinaharbur Sep 30, 2024
692195e
chore: Add usePagination hook
LizBaker Oct 1, 2024
64f28ca
chore: Update theme
LizBaker Oct 1, 2024
1e467e0
feat: Add search results page
LizBaker Oct 1, 2024
68880c1
fix: Update key prop and page count
LizBaker Oct 2, 2024
fb1c358
chore: Nullish coalesce page number, add results catch
LizBaker Oct 4, 2024
669d0ee
chore: Reroute to homepage if no query
LizBaker Oct 4, 2024
b055e42
chore: Add hover underline to result headers
LizBaker Oct 4, 2024
b9cb8ee
chore: Update proptypes and css
LizBaker Oct 4, 2024
3f05b7e
Merge pull request #18822 from newrelic/liz/search-results
LizBaker Oct 7, 2024
a375e01
chore: update homepage search behavior
gmanandhar-nr Oct 4, 2024
e63747f
fix: lint fix
gmanandhar-nr Oct 4, 2024
475ecbe
chore: fix lint
sunnyzanchi Oct 7, 2024
0e70197
Merge pull request #18853 from newrelic/gaurab/NR-313873-homepage-sea…
sunnyzanchi Oct 7, 2024
9915df4
bump `@newrelic/gatsby-theme-newrelic` to 9.9.0
sunnyzanchi Oct 16, 2024
ab0cdb6
bump `@newrelic/gatsby-theme-newrelic` to 9.10.0
sunnyzanchi Oct 17, 2024
8ec0ed2
remove search from left nav
sunnyzanchi Oct 17, 2024
6949384
bump `@newrelic/gatsby-theme-newrelic` to 9.10.1
sunnyzanchi Oct 17, 2024
382a346
fix spacing in left nav
sunnyzanchi Oct 17, 2024
1e0518f
bump `@newrelic/gatsby-theme-newrelic` to 9.10.2
sunnyzanchi Oct 17, 2024
3b8d3dc
docs: remove confusing link to self
keegoid-nr Oct 18, 2024
330cb6e
Update runtime-upgrade-ui.mdx
jeff-colucci Oct 18, 2024
b4efe15
style(Synthetics): Added TW edits
Oct 21, 2024
a1c1076
style(PHP agent): Added TW edits
Oct 21, 2024
a43af5c
feat(php): release 11.3
ZNeumann Oct 21, 2024
ed586e7
style(PHP agent): Added TW edits
Oct 21, 2024
a632f85
fixes
ZNeumann Oct 21, 2024
18ec004
typo
ZNeumann Oct 21, 2024
68b429f
style(PHP agent): Added TW edits
Oct 21, 2024
329a668
fix(discovery): fix docs related to discovery
paologallinaharbur Oct 21, 2024
baef4f2
Merge pull request #18679 from zsistla/patch-11
nbaenam Oct 21, 2024
c09cbd2
Merge pull request #18793 from paologallinaharbur/fix/discovery
nbaenam Oct 21, 2024
1cc8956
Add example for CDK Lambda instrumentation
chaudharysaket Oct 21, 2024
2881e1e
modify inline code to code from asset
chaudharysaket Oct 21, 2024
1268da4
chore: Add missing "to"
kaylareopelle Oct 21, 2024
b128428
Add alternate privatelink endpoint for infra in the EU
haus Oct 22, 2024
bf8c429
Merge pull request #19022 from chaudharysaket/lambda_cdk
nbaenam Oct 22, 2024
124dc68
Merge pull request #19021 from ZNeumann/php-release-11.3
nbaenam Oct 22, 2024
dd6d856
Merge pull request #19025 from haus/haus/privatelink-eu-infra
nbaenam Oct 22, 2024
bb48bfb
Ktranslate log severity
qryuu Oct 22, 2024
f5e0962
style(Logs): Added TW edits
Oct 22, 2024
bf54070
Merge pull request #19014 from keegoid-nr/patch-27
nbaenam Oct 22, 2024
0e8bd84
style(Network): Added a minor TW edit
Oct 22, 2024
ac753e0
Merge pull request #19027 from qryuu/patch-15
nbaenam Oct 22, 2024
c3436f9
chore: add translations
svc-docs-eng-opensource-bot Oct 22, 2024
874f3ce
chore: add translations
svc-docs-eng-opensource-bot Oct 22, 2024
a255545
NR-307785 Update docs with latest bug fix if log message is empty
nr-raviraj Oct 22, 2024
b8ca3b9
style(Logs): Added TW edits
Oct 22, 2024
2f41650
Merge pull request #19031 from nr-raviraj/NR-307785_fix_blank_log_mes…
nbaenam Oct 22, 2024
a0d4ea6
Merge pull request #19024 from kaylareopelle/typo
nbaenam Oct 22, 2024
f730d0f
Revert "chore: Add missing "to""
nbaenam Oct 22, 2024
3930b34
Merge pull request #19032 from newrelic/revert-19024-typo
akristen Oct 22, 2024
8f58733
Merge pull request #18984 from newrelic/feat/search-redesign
sunnyzanchi Oct 22, 2024
b5406c3
Merge pull request #19029 from newrelic/translations-c3436f9a
jmiraNR Oct 22, 2024
4209d4b
fix(Logs): Added missing "to"
Oct 22, 2024
e3516be
fix: Update copy
LizBaker Oct 22, 2024
558211f
Merge pull request #19034 from newrelic/nb-19024
akristen Oct 22, 2024
9335901
fix: More updates
LizBaker Oct 22, 2024
e3fe77a
fix search XPath to click on search in header
sunnyzanchi Oct 22, 2024
a4a32b0
Merge pull request #19036 from newrelic/sunny/fix-webdriver
sunnyzanchi Oct 22, 2024
6a693bc
use XPath that will work in production
sunnyzanchi Oct 22, 2024
4ac2ee4
Merge pull request #19037 from newrelic/sunny/fix-webdriver
sunnyzanchi Oct 22, 2024
4f4ae84
fix: More updates part 2 :)
LizBaker Oct 22, 2024
72f19bf
fix search XPath in mobile webdriver test
sunnyzanchi Oct 22, 2024
06cff65
Merge pull request #19030 from newrelic/translations-874f3ce2
jmiraNR Oct 22, 2024
e1844e9
Merge pull request #19039 from newrelic/sunny/fix-webdriver
sunnyzanchi Oct 22, 2024
9911458
temporarily disable mobile search webdriver test
sunnyzanchi Oct 22, 2024
4066505
Merge pull request #19040 from newrelic/sunny/fix-webdriver
sunnyzanchi Oct 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@emotion/styled": "^11.3.0",
"@mdx-js/mdx": "2.0.0-next.8",
"@mdx-js/react": "2.0.0-next.8",
"@newrelic/gatsby-theme-newrelic": "9.8.1",
"@newrelic/gatsby-theme-newrelic": "9.10.3",
"@splitsoftware/splitio-react": "^1.2.4",
"ansi-colors": "^4.1.3",
"cockatiel": "^3.0.0-beta.0",
Expand Down
4 changes: 3 additions & 1 deletion scripts/actions/webdriver-desktop.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ const navTest = async () => {
};

const searchTest = async () => {
const [searchInput] = await waitForXPath('//aside//input');
const [searchInput] = await waitForXPath(
'.//input[@placeholder="Search docs"]'
);
console.log('\nClicking search input');
await searchInput.click();
const activeEl = await driver.executeScript('return document.activeElement');
Expand Down
5 changes: 3 additions & 2 deletions scripts/actions/webdriver-mobile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ const main = async () => {
await driver.get(testUrl + 'docs/mdx-test-page/');
await navTest();
await collapserTest();
await searchTest();
// TODO: reenable after fixing mobile search focus behavior
// await searchTest();

// this step isn't necessary in synthetics
await driver.quit();
Expand Down Expand Up @@ -106,7 +107,7 @@ const navTest = async () => {
};

const searchTest = async () => {
const [searchButton] = await waitForXPath('//a[contains(@href, "?q=")]');
const [searchButton] = await waitForXPath('.//*[@id="mobile-search-expand"]');
console.log('\nClicking search input');
await searchButton.click();
// sleep is required here on mobile to account for the click delay
Expand Down
14 changes: 8 additions & 6 deletions src/components/HomepageBanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ const HomepageBanner = () => {
searchTerm,
searchLocation: 'homepage',
});
navigate(`?q=${searchTerm || ''}`);
if (searchTerm !== '') {
navigate(`search-results/?query=${searchTerm}&page=1`);
}
}}
css={css`
max-width: 880px;
Expand Down Expand Up @@ -116,19 +118,19 @@ const HomepageBanner = () => {
`}
>
<p>{t('strings.home.search.popularSearches.title')}: </p>
<Link to="?q=nrql">
<Link to="/search-results/?query=nrql&page=1">
{t('strings.home.search.popularSearches.options.0')},
</Link>
<Link to="?q=logs">
<Link to="/search-results/?query=logs&page=1">
{t('strings.home.search.popularSearches.options.1')},
</Link>
<Link to="?q=alert">
<Link to="/search-results/?query=alert&page=1">
{t('strings.home.search.popularSearches.options.2')},
</Link>
<Link to="?q=best practices">
<Link to="/search-results/?query=best practices&page=1">
{t('strings.home.search.popularSearches.options.3')},
</Link>
<Link to="?q=kubernetes">
<Link to="/search-results/?query=kubernetes&page=1">
{t('strings.home.search.popularSearches.options.4')}
</Link>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Navigation = ({ nav, className }) => {
css={css`
height: 100%;
overflow: auto;
margin: 16px 0;
margin: 0 0 16px;
-ms-overflow-style: none;
scrollbar-width: none;
&::-webkit-scrollbar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,10 @@ Below are some sample requests to automate the creation of your synthetic monito
</Callout>

<Callout variant="important">
As of August 26, 2024, you can no longer create new monitors using legacy runtimes on public or private locations.
As of August 26, 2024, you can no longer create new monitors using legacy runtimes on public or private locations. On October 22, 2024, we will [end of life](/whats-new/2024/04/whats-new-04-09-eol-synthetics-runtime-cpm) the containerized private minion (CPM) and legacy synthetics runtime versions.

On October 22, 2024, we will [end of life](/whats-new/2024/04/whats-new-04-09-eol-synthetics-runtime-cpm) the containerized private minion (CPM) and legacy synthetics runtime versions. For public locations, use [the runtime upgrade UI](/docs/synthetics/synthetic-monitoring/using-monitors/runtime-upgrade-ui/) to update your monitors to the newest runtimes. For private locations, please review our [recommended migration steps](/docs/synthetics/synthetic-monitoring/private-locations/job-manager-transition-guide/#monitorMigration) to avoid monitor degradation.
* For public locations, use [the runtime upgrade UI](/docs/synthetics/synthetic-monitoring/using-monitors/runtime-upgrade-ui/) to update your monitors to the newest runtimes.
* For private locations, please review our [recommended migration steps](/docs/synthetics/synthetic-monitoring/private-locations/job-manager-transition-guide/#monitorMigration) to avoid monitor degradation.
</Callout>

<CollapserGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
title: PHP Agent overhead reduction tips
type: troubleshooting
tags:
- Agents
- PHP agent
- Troubleshooting
metaDescription: Agent settings to decrease overhead.
freshnessValidatedDate: 2024-10-21
---

## Problem

Using the New Relic PHP agent results in overhead.

## Cause

Overhead is an expected side effect of monitoring and reporting on software. Our engineers aim to minimize this, but your experience may differ quite a lot, depending on how you're using the agent. If you find that you're experiencing unexpected overhead, there are are various settings in the `INI` that can help reduce it.

## Solution
Performance INI settings that can reduce overhead depending on your agent usage.

1. Reduce [`newrelic.span_events.max_samples_stored`](/docs/apm/agents/php-agent/configuration/php-agent-configuration/#inivar-span-events-max-samples-stored).

2. Disable [code level metrics](/docs/apm/agents/php-agent/configuration/php-agent-configuration/#inivar-code-level-metrics).

3. Disable [logging](/docs/apm/agents/php-agent/configuration/php-agent-configuration/#log-forwarding).

4. Set [`newrelic.transaction_tracer.max_segments_web`](/docs/apm/agents/php-agent/configuration/php-agent-configuration/#inivar-tt-maxsegweb) and [`newrelic.transaction_tracer.max_segments_cli`](/docs/apm/agents/php-agent/configuration/php-agent-configuration/#inivar-tt-maxsegcli) >= 1.

5. Set [`newrelic.transaction_tracer.detail`](/docs/apm/agents/php-agent/configuration/php-agent-configuration/#inivar-tt-detail) = 0.

6. Set [`newrelic.transaction_tracer.enabled`](/docs/agents/php-agent/configuration/php-agent-configuration#inivar-tt-enabled) = false.

7. Increase the [transaction tracer threshold](/docs/agents/php-agent/configuration/php-agent-configuration#inivar-tt-threshold) by setting `newrelic.transaction_tracer.threshold` = higher value.

8. Set [`newrelic.transaction_tracer.explain_enabled`](/docs/agents/php-agent/configuration/php-agent-configuration#inivar-tt-explain-enabled) = false.

9. Don't trace slow SQL statements by setting [`newrelic.transaction_tracer.slow_sql`](/docs/agents/php-agent/configuration/php-agent-configuration#inivar-tt-slowsql) = false.


## Other overhead considerations
A non-performant clocksource can affect the agent which checks the time for every span. Please ensure you're using an appropriate [clocksource](https://forum.newrelic.com/s/hubtopic/aAX8W0000008a7rWAA/relic-solution-php-agent-cpu-overhead-tips).
Fargate is affected by clocksource and is known to cause additional [overhead](/docs/apm/agents/php-agent/troubleshooting/fargate-nitro-clock-performance-impact/).
4 changes: 2 additions & 2 deletions src/content/docs/data-apis/custom-data/aws-privatelink.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -776,11 +776,11 @@ These are the New Relic endpoint services available via AWS PrivateLink:
</td>

<td>
`infra-api.eu01.nr-data.net`
`infra-api.eu01.nr-data.net` and `infra-api.eu.newrelic.com`
</td>

<td>
`com.amazonaws.vpce.eu-central-1.vpce-svc-06d5b2d7e79ddd78e`
`com.amazonaws.vpce.eu-central-1.vpce-svc-06d5b2d7e79ddd78e` and `com.amazonaws.vpce.eu-central-1.vpce-svc-02fc7dd8d7be95a32`, respectively
</td>
</tr>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ Here's a detailed example of doing the above procedure for NGINX:
integrations:
- name: nri-nginx
env:
STATUS_URL: http://${'${discovery.ip}'}:/status
STATUS_URL: http://${discovery.ip}:${discovery.port}/status
REMOTE_MONITORING: true
METRICS: 1
```
Expand All @@ -311,7 +311,7 @@ Here's a detailed example of doing the above procedure for NGINX:
integrations:
- name: nri-nginx
env:
STATUS_URL: http://${'${discovery.ip}'}:/status
STATUS_URL: http://${discovery.ip}:${discovery.port}/status
REMOTE_MONITORING: true
METRICS: 1
path: /etc/newrelic-infra/integrations.d/nginx-config.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ To troubleshoot and resolve the problem:
</DNT>

```
nginx-server-metrics: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\":
nri-nginx: {\"name\":\"com.newrelic.nginx\",\"protocol_version\":\"1\",\"integration_version\":\"0.5.0\",\"metrics\":
[{\"event_type\":\"NginxSample\",\"net.connectionsAcceptedPerSecond\":0.10344827586206896,\"net.connectionsActive\":1,
\"net.connectionsDroppedPerSecond\":0,\"net.connectionsReading\":0,\"net.connectionsWaiting\":0,\"net.connectionsWriting\":1,
\"net.requestsPerSecond\":0.10344827586206896,\"software.edition\":\"open source\",\"software.version\":\"1.4.6 (Ubuntu)\"}],\"inventory\":{},\"events\":[]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,12 @@ These examples (for Docker-only environments and for Kubernetes) show how to con
image: /nginx/
label.env: production
integrations:
- name: nginx-server-metrics
command: metrics
- name: nri-nginx
env:
# use discovery.private.ip if container doesn't have attached public ip address
# use discovery.private.ip if container doesn't have attached public ip address
STATUS_URL: http://${discovery.ip}:${discovery.port}/status
STATUS_MODULE: discover
REMOTE_MONITORING: true
METRICS: 1
labels:
env: ${discovery.label.env}
role: ${discovery.label.role}
Expand Down Expand Up @@ -94,6 +93,7 @@ These examples (for Docker-only environments and for Kubernetes) show how to con
env:
# Use the discovered IP as the host address
STATUS_URL: http://${discovery.ip}/server-status?auto
REMOTE_MONITORING: true
METRICS: 1
```
</Collapser>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ The following licenses are for the plugins used to connects your log data with N

## Go plugins for Logs [#go-logs]

The following licenses are for the plugins used link your logs and APM data using New Relic's Go agent. For Go licenses, see [Go agent licenses](/docs/licenses/license-information/agent-licenses/go-agent-licenses).
The following licenses are for the plugins used to link your logs and APM data using New Relic's Go agent. For Go licenses, see [Go agent licenses](/docs/licenses/license-information/agent-licenses/go-agent-licenses).

<CollapserGroup>
<Collapser
Expand Down Expand Up @@ -261,7 +261,7 @@ The following licenses are for the plugins used link your logs and APM data usin

## Java plugins for Logs [#java-logs]

The following licenses are for the plugins used link your logs and APM data using New Relic's Java agent. For Java licenses, see [Java agent licenses](/docs/licenses/product-or-service-licenses/new-relic-apm/java-agent-licenses).
The following licenses are for the plugins used to link your logs and APM data using New Relic's Java agent. For Java licenses, see [Java agent licenses](/docs/licenses/product-or-service-licenses/new-relic-apm/java-agent-licenses).

<CollapserGroup>
<Collapser
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ If you're not using a supported framework, you may instead use the agent's log f
This is my log message. NR-LINKING|{entity.guid}|{hostname}|{trace.id}|{span.id}|{entity.name}|
```

If the log message is empty or blank, output message will also be empty. Example:

```
NR-LINKING|{entity.guid}|{hostname}|{trace.id}|{span.id}|{entity.name}|.
```
The output log message will be an empty string.

Some attributes may be empty if the log occurred outside a transaction or if they are not applicable to your application's context.

We recommend this option over manually using one of our log enrichers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ redirects:
- /docs/logs/enable-log-monitoring-new-relic/logs-context-php/configure-logs-context-php
- /docs/logs/enable-log-management-new-relic/logs-context-php
- /docs/logs/enable-log-management-new-relic/logs-context-php/configure-logs-context-php
- /docs/logs/enable-log-management-new-relic/configure-logs-context/configure-logs-context-php
- /docs/logs/enable-log-management-new-relic/configure-logs-context/configure-logs-context-php
freshnessValidatedDate: never
---

Expand Down Expand Up @@ -134,14 +134,21 @@ The other option is to have the agent decorate log records with a token containi
$logfmt = "%channel%.%level_name%: %message% %extra.NR-LINKING%\n";
$formatter = new LineFormatter($logfmt);
$handler->setFormatter($formatter);
$logger->pushHandler($handler);
$logger->pushHandler($handler);
```

Our decorator adds five attributes to every log `message` (plain text): `entity.guid`, `entity.name`, `hostname`, `trace.id`, and `span.id`. Example:

```
This is my log message. NR-LINKING|{entity.guid}|{hostname}|{trace.id}|{span.id}|{entity.name}|
```
If the log message is empty or blank, output message will also be empty. Example:

```
NR-LINKING|{entity.guid}|{hostname}|{trace.id}|{span.id}|{entity.name}|.
```
The output log message will be an empty string.


5. To verify that you have configured the log appender correctly, run your application, then check your [logs data in New Relic](/docs/logs/log-management/ui-data/use-logs-ui/) using the query operator `has:span.id has:trace.id`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ You have three options to configure APM logs in context to send your app's logs
This is my log message. NR-LINKING|{entity.guid}|{hostname}|{trace.id}|{span.id}|{entity.name}|
```

If the log message is empty or blank, output message will also be empty. Example:

```
NR-LINKING|{entity.guid}|{hostname}|{trace.id}|{span.id}|{entity.name}|.
```
The output log message will be an empty string.

Some attributes may be empty if the log occurred outside a transaction or if they are not applicable to your application's context.

We recommend this option over the manual decorating formatter, `NewRelicContextFormatter`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ You have three options to configure <InlinePopover type="apm"/> logs in context
This is my log message. NR-LINKING|{entity.guid}|{hostname}|{trace.id}|{span.id}|{entity.name}|
```

If the log message is empty or blank, output message will also be empty. Example:

```
NR-LINKING|{entity.guid}|{hostname}|{trace.id}|{span.id}|{entity.name}|.
```
The output log message will be an empty string.

Some attributes may be empty if the log occurred outside a transaction or if they are not applicable to your application's context.

We recommend this option over the manual decorating formatter, `NewRelic::Agent::Logging::DecoratingFormatter`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ If you prefer to use your own log forwarder, rather than having the Java agent f
enabled: true
forwarding:
enabled: true
max_samples_stored: 10000
local_decorating:
max_samples_stored: 10000
local_decorating:
enabled: false
```

Expand Down Expand Up @@ -183,7 +183,7 @@ If you prefer to use your own log forwarder, rather than having the Java agent f
forwarding:
enabled: true
max_samples_stored: 10000
local_decorating:
local_decorating:
enabled: false
```

Expand Down Expand Up @@ -231,7 +231,7 @@ If you prefer to use your own log forwarder, rather than having the Java agent f
```yml
application_logging:
enabled: true
local_decorating:
local_decorating:
enabled: true
forwarding:
enabled: false
Expand Down Expand Up @@ -259,6 +259,13 @@ If you prefer to use your own log forwarder, rather than having the Java agent f
This is my log message. NR-LINKING|{entity.guid}|{hostname}|{trace.id}|{span.id}|{entity.name}|
```

If the log message is empty or blank, output message will also be empty. Example:

```
NR-LINKING|{entity.guid}|{hostname}|{trace.id}|{span.id}|{entity.name}|.
```
The output log message will be an empty string.

Some attributes may be empty if the log occurred outside a transaction or if they are not applicable to your application's context.
</Collapser>
</CollapserGroup>
Expand Down Expand Up @@ -508,7 +515,7 @@ If you need to use the manual process to set up logs in context for Java, follow
5. Use `NewRelicAsyncAppender` to wrap any appenders that will target New Relic's log forwarder. For example:

```xml
<appender name="NewRelicFile"
<appender name="NewRelicFile"
class="com.newrelic.logging.log4j1.NewRelicAsyncAppender">
<appender-ref ref="TypicalFile" />
</appender>
Expand Down Expand Up @@ -538,15 +545,15 @@ If you need to use the manual process to set up logs in context for Java, follow
</appender>

<!-- this appender was added -->
<appender name="NewRelicFile"
<appender name="NewRelicFile"
class="com.newrelic.logging.log4j1.NewRelicAsyncAppender">
<appender-ref ref="TypicalFile" />
</appender>

<appender name="TypicalConsole" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-5p %c{1} - %m%n"/>
</layout>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-5p %c{1} - %m%n"/>
</layout>
</appender>

<root> ​
Expand Down Expand Up @@ -737,7 +744,7 @@ If you need to use the manual process to set up logs in context for Java, follow
<root level="debug">

<!-- changed the root logger -->
<appender-ref ref="ASYNC" />
<appender-ref ref="ASYNC" />

</root>
</configuration>
Expand Down Expand Up @@ -766,12 +773,12 @@ If you need to use the manual process to set up logs in context for Java, follow

<!-- The required New Relic ASYNC appender wraps the FILE appender -->
<appender name="ASYNC" class="com.newrelic.logging.logback.NewRelicAsyncAppender">
<appender-ref ref="FILE" />
<appender-ref ref="FILE" />
</appender>

<root level="debug">
<!-- ASYNC is one of the main appenders -->
<appender-ref ref="ASYNC" />
<appender-ref ref="ASYNC" />

<!-- Send every message to normal console logging, as well. -->
<appender-ref ref="STDOUT" />
Expand Down
Loading
Loading