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/11 20 24 morning #19345

Merged
merged 48 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
f26f785
Update session-replay.mdx
CherylFrankenfield Nov 8, 2024
ebf03e1
Add clarifying examples to SetTransactionName API doc
nr-ahemsath Nov 8, 2024
1888894
PR feedback
nr-ahemsath Nov 8, 2024
f3f046f
fix(browser): improved language of troubleshooting section
ally-sassman Nov 11, 2024
6914bef
Update src/content/docs/browser/browser-monitoring/browser-pro-featur…
ally-sassman Nov 12, 2024
e4a0c3f
Corrected spelling
ammartens Nov 13, 2024
e8dbbfb
chore(whats-new-ids): updated ids
svc-docs-eng-opensource-bot Nov 15, 2024
7a34ebc
Update docs to include optional parameter.mdx
abhishuraina Nov 18, 2024
bdca1d5
fix: Update the indentation in callout tag so that file can be serial…
akashreddy-nr Nov 18, 2024
ace4973
Update k8s-agent-operator.mdx
mangulonr Nov 18, 2024
6183416
chore(whats-new-ids): updated ids
svc-docs-eng-opensource-bot Nov 18, 2024
558416d
chore: add translations
svc-docs-eng-opensource-bot Nov 19, 2024
f364631
chore: add translations
svc-docs-eng-opensource-bot Nov 19, 2024
663354f
fix: Remove ~ symbol
gmanandhar-nr Nov 19, 2024
3f4e914
Merge pull request #19324 from newrelic/translations-558416dd
jmiraNR Nov 19, 2024
b6d75e6
Merge pull request #19325 from newrelic/translations-f364631c
jmiraNR Nov 19, 2024
3a24da7
chore(ruby agent): Update config docs
newrelic-ruby-agent-bot Nov 19, 2024
fb499d0
chore(ruby agent): add release notes
newrelic-ruby-agent-bot Nov 19, 2024
61a54f9
Cloned the PR from https://github.com/newrelic/docs-website/pull/19239
adutta-newrelic Nov 20, 2024
10a9ced
Updated the documents
adutta-newrelic Nov 20, 2024
5f0df11
Merge pull request #19304 from newrelic/whats-new-id-e8dbbfbf
adutta-newrelic Nov 20, 2024
a856e92
Merge pull request #19338 from newrelic/NR-PR-19262-v1
adutta-newrelic Nov 20, 2024
28771e0
Revert "docs-website for github integration"
WriteMayur Nov 20, 2024
400e171
Merge pull request #19292 from ammartens/patch-2
adutta-newrelic Nov 20, 2024
faa83e8
Merge pull request #19337 from newrelic/NR-PR-19239
adutta-newrelic Nov 20, 2024
827ccdd
Deleted the translation file to fix the error conflict
WriteMayur Nov 20, 2024
7d5bdfa
Merge pull request #19339 from newrelic/revert-19286-dinesh-github-in…
adutta-newrelic Nov 20, 2024
1aea5a4
Merge pull request #19313 from newrelic/akash/update-file-syntax
akashreddy-nr Nov 20, 2024
77375c0
Minor changes
adutta-newrelic Nov 20, 2024
0090e9a
minor-grammatical-updates
WriteMayur Nov 20, 2024
bf1e012
Merge pull request #19316 from newrelic/whats-new-id-61834168
adutta-newrelic Nov 20, 2024
a08eebe
Merge pull request #19334 from newrelic/ruby-config-updates
adutta-newrelic Nov 20, 2024
e9acfe0
Merge pull request #19335 from newrelic/ruby_release_notes_9-16-0
adutta-newrelic Nov 20, 2024
c5edcd9
Updated the redirect link
adutta-newrelic Nov 20, 2024
affe516
Minor changes made
adutta-newrelic Nov 20, 2024
402f61c
Merge pull request #19340 from newrelic/hero-url-broken
adutta-newrelic Nov 20, 2024
7422d19
Merge pull request #19251 from nr-ahemsath/docs/net-agent-settransact…
adutta-newrelic Nov 20, 2024
098f291
Update k8s-agent-operator.mdx
mangulonr Nov 20, 2024
025ed78
Updates
adutta-newrelic Nov 20, 2024
52c5191
Merge pull request #19243 from CherylFrankenfield/patch-17
adutta-newrelic Nov 20, 2024
3f73dbb
Updated the document
adutta-newrelic Nov 20, 2024
3f75f5a
Merge pull request #19341 from newrelic/configuration-for-adding-labels
adutta-newrelic Nov 20, 2024
f9c76ac
updates
adutta-newrelic Nov 20, 2024
4b75634
Merge pull request #19344 from newrelic/NR-PR-19262-v1
adutta-newrelic Nov 20, 2024
1f0cb6e
Updated the alignment
adutta-newrelic Nov 20, 2024
da0d252
Merge pull request #19312 from abhishuraina/patch-1
adutta-newrelic Nov 20, 2024
7119e97
Rewritten the sentence to make it more concise
adutta-newrelic Nov 20, 2024
301ffb5
Merge pull request #19314 from mangulonr/patch-92
adutta-newrelic Nov 20, 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
Original file line number Diff line number Diff line change
Expand Up @@ -3554,6 +3554,7 @@ There are three main sub-features:
2. Log forwarding: When enabled, the agent will capture log data and send it to New Relic.
* Context data (via [`AddCustomAttribute`](/docs/apm/agents/net-agent/net-agent-api/itransaction/#addcustomattribute)): When enabled, the agent will capture and forward any custom log attributes. The `include` and `exclude` elements are comma-separated lists of attribute names to include or exclude, following the [same rules](/docs/apm/agents/net-agent/attributes/enable-disable-attributes-net/#attruls) as other agent attribute configuration. They're both empty by default, which results in all log context data being captured and forwarded.
* Log-level filtering: When configured with one or more log levels in a comma-separated list, the agent will prevent messages at those levels from being captured and forwarded.
* Labels: When enabled, the agent adds custom labels to agent-forwarded logs. You can use the `exclude` attribute, which is a case-insensitive, comma-separated list of label names. By default, the agent adds custom labels when the `exclude` attribute is empty.
3. Local log decoration: When enabled, your existing logs will be decorated with metadata which links logs with other New Relic data, such as errors.

For more details, see [our docs on using .NET agent logs in context](/docs/logs/logs-context/net-configure-logs-context-all).
Expand All @@ -3563,6 +3564,7 @@ For more details, see [our docs on using .NET agent logs in context](/docs/logs/
<metrics enabled="true" />
<forwarding enabled="true" maxSamplesStored="10000" logLevelDenyList="">
<contextData enabled="false" include="" exclude="" />
<labels enabled="false" exclude="" />
</forwarding>
<localDecorating enabled="false" />
</applicationLogging>
Expand All @@ -3579,6 +3581,8 @@ NEW_RELIC_APPLICATION_LOGGING_FORWARDING_CONTEXT_DATA_INCLUDE="myCustomAttribute
NEW_RELIC_APPLICATION_LOGGING_FORWARDING_CONTEXT_DATA_EXCLUDE="myCustomAttribute2, myOtherCustomAttributeMoreSpecificName"
NEW_RELIC_APPLICATION_LOGGING_FORWARDING_MAX_SAMPLES_STORED=10000
NEW_RELIC_APPLICATION_LOGGING_FORWARDING_LOG_LEVEL_DENYLIST="debug, warn"
NEW_RELIC_APPLICATION_LOGGING_FORWARDING_LABELS_ENABLED=true
NEW_RELIC_APPLICATION_LOGGING_FORWARDING_LABELS_EXCLUDE="label1, label2"
NEW_RELIC_APPLICATION_LOGGING_LOCAL_DECORATING_ENABLED=true
```

Expand Down Expand Up @@ -3661,6 +3665,17 @@ The `applicationLogging` element supports the following attributes and sub-eleme
The include and exclude lists follow the [same precedence rules as other agent attributes configuration](/docs/apm/agents/net-agent/attributes/enable-disable-attributes-net/#attruls).
</Collapser>

<Collapser
id="labels"
title="labels (tags)"
>
Use this sub-element, which is a child of the `forwarding` element, to configure adding your [labels (tags)](/docs/apm/agents/net-agent/configuration/net-agent-configuration/#labels-tags) to agent-forwarded logs, in agent versions 10.34.0 and higher.

Set the `enabled` attribute to `true` to enable adding your labels to agent-forwarded logs. You can also use the environment variable `NEW_RELIC_APPLICATION_LOGGING_FORWARDING_LABELS_ENABLED`. The default value is `false`.

The `exclude` attribute is a case-insensitive, comma-separated list of label names to exclude when you enable labels. You can also use the environment variable `NEW_RELIC_APPLICATION_LOGGING_FORWARDING_LABELS_EXCLUDE`. The default value is an empty string, which means "exclude nothing". This attribute does not support wildcards or regex.
</Collapser>

<Collapser
id="localDecorating"
title="Local log decoration"
Expand Down Expand Up @@ -3870,4 +3885,4 @@ For .NET Core apps, you can configure the following settings in `appsettings.jso

<Callout variant="important">
For [ASP.NET Core apps](https://asp.net/), the .NET Agent will read from `appsettings.{environment}.json` if you set the `ASPNETCORE_ENVIRONMENT` variable.
</Callout>
</Callout>
Original file line number Diff line number Diff line change
Expand Up @@ -2334,7 +2334,7 @@ The following list contains the different calls you can make with the API, inclu

### Description

Sets the name of the current transaction. Before you use this call, ensure you understand the implications of [metric grouping issues](/docs/agents/manage-apm-agents/troubleshooting/metric-grouping-issues).
Set a custom transaction name, to be appended after an initial prefix (`WebTransaction` or `OtherTransaction`) based on the type of the current transaction. Before you use this call, ensure you understand the implications of [metric grouping issues](/docs/agents/manage-apm-agents/troubleshooting/metric-grouping-issues).

If you use this call multiple times within the same transaction, each call overwrites the previous call and the last call sets the name.

Expand Down Expand Up @@ -2392,8 +2392,71 @@ The following list contains the different calls you can make with the API, inclu

### Examples

This example shows use of this API in an ASP.NET Core MVC controller. A transaction is created automatically by the agent's instrumentation for ASP.NET Core. The first part of the transaction name will continue to be `WebTransaction`.

```cs
public class HomeController : Controller
{

public IActionResult Order(string product)
{

// The commented-out API call below is probably a bad idea and will lead to a metric grouping issue (MGI)
// because too many transaction names will be created. Don't do this.
//NewRelic.Api.Agent.NewRelic.SetTransactionName("Other", $"ProductOrder-{product}");

// Do this instead if you want to record request-specific data about this MVC endpoint
var tx = NewRelic.Api.Agent.NewRelic.GetAgent().CurrentTransaction;
tx.AddCustomAttribute("productName", product);

// The default transaction name at this point will be: WebTransaction/MVC/Home/Order

// Set custom transaction name
NewRelic.Api.Agent.NewRelic.SetTransactionName("Other", "OrderProduct");

// Transaction name is now: WebTransaction/Other/OrderProduct

return View();
}
}
```

This example shows use of this API in a console application. Note the `[Transaction]` custom instrumentation attribute, which is necessary to create a transaction for the example method. The first part of the transaction name will continue to be `OtherTransaction`.

```cs
NewRelic.Api.Agent.NewRelic.SetTransactionName("Other", "MyTransaction");
using NewRelic.Api.Agent;

namespace SetApplicationNameConsoleExample
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, World!");

var start = DateTime.Now;
while (DateTime.Now - start < TimeSpan.FromMinutes(2))
{
DoSomething();
Thread.Sleep(TimeSpan.FromSeconds(5));
}
}

[Transaction] // Attribute-based custom instrumentation to create a transaction for this method
static void DoSomething()
{
Console.WriteLine("Doing something: " + Guid.NewGuid().ToString());

// Transaction name from default naming at this point is: OtherTransaction/Custom/SetApplicationNameConsoleExample.Program/DoSomething

NewRelic.Api.Agent.NewRelic.SetTransactionName("Console", "MyCustomTransactionName");

// Transaction name at this point is: OtherTransaction/Console/MyCustomTransactionName

// Note, however, that this transaction will still have a child segment (span) named "SetApplicationNameConsoleExample.Program.DoSomething"
}
}
}
```
</Collapser>

Expand All @@ -2420,7 +2483,7 @@ The following list contains the different calls you can make with the API, inclu

### Description

Sets the URI of the current transaction. The URI appears in the `request.uri` attribute of [transaction traces](/docs/apm/transactions/transaction-traces/transaction-traces) and [transaction events](/docs/using-new-relic/metrics/analyze-your-metrics/data-collection-metric-timeslice-event-data), and it also can affect transaction naming.
Set the URI of the current transaction. The URI appears in the `request.uri` attribute of [transaction traces](/docs/apm/transactions/transaction-traces/transaction-traces) and [transaction events](/docs/using-new-relic/metrics/analyze-your-metrics/data-collection-metric-timeslice-event-data), and it also can affect transaction naming.

If you use this call multiple times within the same transaction, each call overwrites the previous call. The last call sets the URI.

Expand Down
Loading
Loading