Skip to content

Commit

Permalink
Merge branch 'develop' into RAG-for-confluence
Browse files Browse the repository at this point in the history
  • Loading branch information
adutta-newrelic committed Feb 3, 2025
2 parents 5656818 + edfd39a commit 0301718
Show file tree
Hide file tree
Showing 64 changed files with 2,500 additions and 764 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
subject: Browser agent
releaseDate: "2025-01-31"
version: 1.280.0
features: ["Remove agentIdentifier argument from agent constructors"]
bugs: ["Roll back to previous FirstInteraction implementation"]
security: []
---

## v1.280.0

### Features

#### Remove agentIdentifier argument from agent constructors
Removes the agentIdentifier argument from the Agent and MicroAgent class constructors. The agentIdentifier should always be a random hex string to guarantee uniqueness across agent instances.


### Bug fixes

#### Roll back to previous FirstInteraction implementation
Setting agent back to previous FirstInteraction implementation after some reports of slow downs around the performance observer on the first input of a page.

## Support statement

New Relic recommends that you upgrade the agent regularly to ensure that you're getting the latest features and performance benefits. Older releases will no longer be supported when they reach [end-of-life](https://docs.newrelic.com/docs/browser/browser-monitoring/getting-started/browser-agent-eol-policy/). Release dates are reflective of the original publish date of the agent version.

New browser agent releases are rolled out to customers in small stages over a period of time. Because of this, the date the release becomes accessible to your account may not match the original publish date. Please see this [status dashboard](https://newrelic.github.io/newrelic-browser-agent-release/) for more information.

Consistent with our [browser support policy](https://docs.newrelic.com/docs/browser/new-relic-browser/getting-started/compatibility-requirements-browser-monitoring/#browser-types), v1.280.0 of the Browser agent was built for and tested against these browsers and version ranges: Chrome 122-132, Edge 122-132, Safari 17-17, and Firefox 124-134. For mobile devices, v1.280.0 was built and tested for Android OS 15 and iOS Safari 17-18.1.
4 changes: 2 additions & 2 deletions src/content/docs/tutorial-create-alerts/create-an-alert.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ For this tutorial, we've included steps for all three of the aforementioned opti
1. <DNT>**Set the data aggregation options**</DNT>:
* <DNT>**Window duration**</DNT>: Use the <DNT>**Window duration**</DNT> setting to determine how frequently we aggregate your data, such as groupings of every 5 minutes or every hour. This feature's setting depends on what kind of data you're monitoring. If you're unsure of what it should be, you can leave it at the default setting. You can learn more in our [Create your first alert doc](/docs/alerts-applied-intelligence/new-relic-alerts/get-started/your-first-nrql-condition/#window-duration).
* <DNT>**Sliding window aggregation**</DNT>: Choose whether or not you want to use [sliding window aggregation](/docs/alerts-applied-intelligence/new-relic-alerts/alert-conditions/create-nrql-alert-conditions/#sliding-window-aggregation). This feature creates smoother charts when dealing with erratic data by creating overlapping aggregation windows. This feature is disabled by default, and we recommend keeping it disabled for your first alert
* <DNT>**Streaming method**</DNT>: The options most commonly used are <DNT>**Event flow**</DNT> and <DNT>**Event timer**</DNT>. <DNT>**Event flow**</DNT> is best suited for frequent and consistently reporting data, while <DNT>**Event timer**</DNT> is best suited for data that reports inconsisntely, infrequently, or ingests in batches. If you want to learn more about the individual settings to see which method should be used in each scenario, see [our docs](/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/understand-technical-concepts/streaming-alerts-key-terms-concepts/#aggregation-methods)
* <DNT>**Streaming method**</DNT>: The options most commonly used are <DNT>**Event flow**</DNT> and <DNT>**Event timer**</DNT>. <DNT>**Event flow**</DNT> is best suited for frequent and consistently reporting data, while <DNT>**Event timer**</DNT> is best suited for data that reports inconsistently, infrequently, or ingests in batches. If you want to learn more about the individual settings to see which method should be used in each scenario, see [our docs](/docs/alerts-applied-intelligence/new-relic-alerts/advanced-alerts/understand-technical-concepts/streaming-alerts-key-terms-concepts/#aggregation-methods)

2. <DNT>**Set the timing option**</DNT>: This determines how long we wait for events in each window before we evaluate them. A longer delay will mean fewer false alerts, but it will also mean longer potential downtime before an incident is open. This capability is also shown differently depending on the option you select: it's called <DNT>**Delay**</DNT> in the <DNT>**Event flow**</DNT> and <DNT>**Cadence**</DNT> options and <DNT>**Timer**</DNT> in <DNT>**Event timer**</DNT>. For your first alert, we recommend keeping the default time setting.

Expand Down Expand Up @@ -240,7 +240,7 @@ You've now created an alert condition! We offer different configuration options

## Get more from alerting [#more-alerting]

We have some advanced alerting features that can help you make alerting more efficent and manageable for your team:
We have some advanced alerting features that can help you make alerting more efficient and manageable for your team:

* If you want greater control over where and when you receive alerts and ensure the right people are notified about issues, see how to use [Workflows](/docs/alerts-applied-intelligence/applied-intelligence/incident-workflows/incident-workflows/).
* If you want to enable near-instant notification of critical alerts, helping you reduce your mean time to resolution (MTTR), see how to use our [anomaly detection](/docs/alerts-applied-intelligence/applied-intelligence/anomaly-detection/anomaly-detection-applied-intelligence/).
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
---
title: Detectar automáticamente los logs de browser
metaDescription: Get a more complete picture of your front-end application
freshnessValidatedDate: '2024-11-18T00:00:00.000Z'
translationType: machine
---

El logging automático recopila mensajes de log emitidos desde el browser `console` para ayudarlo a maximizar la observabilidad de su aplicación frontend.

Los logs del Browser se rastrean de forma predeterminada en el `WARN` nivel para el agente Pro y Pro+SPA, pero no están disponibles para el Lite agente del browser. Le recomendamos que primero confirme que está empleando el agente Pro o Pro+SPA. Consulte [Primeros pasos](#get-started).

## Cómo funciona el logging automático del browser [#how-it-works]

En función de los niveles de logging y las frecuencias de ejemplificación establecido en la configuración, la instrumentación automática de logs browser intentará recopilar mensajes de los siguientes métodos:

<table>
<thead>
<tr>
<th style={{width: "200px"}}>
Método
</th>

<th>
Nivel
</th>
</tr>
</thead>

<tbody>
<tr>
<td>
`console.log`
</td>

<td>
`'INFO'`
</td>
</tr>

<tr>
<td>
`console.error`
</td>

<td>
`'ERROR'`
</td>
</tr>

<tr>
<td>
`console.warn`
</td>

<td>
`'WARN'`
</td>
</tr>

<tr>
<td>
`console.info`
</td>

<td>
`'INFO'`
</td>
</tr>

<tr>
<td>
`console.debug`
</td>

<td>
`'DEBUG'`
</td>
</tr>

<tr>
<td>
`console.trace`
</td>

<td>
`'TRACE'`
</td>
</tr>
</tbody>
</table>

<Callout variant="important">
Los datos que pasan a través de los métodos de consola pueden pasar por serialización y [ofuscación](/docs/browser/new-relic-browser/configuration/obfuscate-browser-agent-data/). Dependiendo del tamaño y la frecuencia, esto puede afectar negativamente el rendimiento de la aplicación, así como los costos de datos. En general, NO se recomienda pasar objetos grandes o grandes cantidades de datos a los métodos de consola.
</Callout>

De forma predeterminada, los datos de logging se almacenan durante 30 días, pero la retención real de los datos depende de su cuenta.

## Empezar [#get-started]

<Steps>
<Step>
### Habilitar la recopilación automática de logs [#enable-configure-settings]

1. Vaya a <DNT>**[one.newrelic.com](https://one.newrelic.com/all-capabilities) &amp;gt; All Capabilities &amp;gt; Browser**</DNT>.
2. Seleccione la aplicación de su browser .
3. En el menú de la izquierda, haga clic en <DNT>**Application settings**</DNT>.
4. En la página de configuración de la aplicación, cerciorar de que el agente del browser <DNT>**Pro**</DNT> o <DNT>**Pro + SPA**</DNT> esté seleccionado. La detección automática de logs no está disponible para el Lite agente del browser.
5. Activar la configuración <DNT>**Browser logs**</DNT> .
</Step>

<Step>
### Configurar tasas de muestreo [#configure-sampling-rates]

Establezca una frecuencia de muestreo (0%-100%) para las siguientes muestras:

* <DNT>**User sessions**</DNT> registra una muestra aleatoria de todas las sesiones de usuario.

Por ejemplo, si establece la frecuencia de ejemplificación de la sesión al 50%, significa que:

* La mitad de todas las sesiones de usuario recopilarán automáticamente el log de eventos.
</Step>

<Step>
### Ver log de eventos [#view-events]

Puede encontrar datos de logging en dos lugares:

* En la página <DNT>**Logs**</DNT> :

1. Vaya a: <DNT>**[one.newrelic.com &gt; All capabilities](https://one.newrelic.com/all-capabilities) &amp;gt; Logs**</DNT>. Para obtener detalles sobre lo que puede hacer en la UI, consulte [Logs UI](/docs/logs/ui-data/use-logs-ui).

También puedes consultar el tipo de datos `Log` . Aquí hay un ejemplo simple de consulta NRQL:

```sql
SELECT * FROM Log
```

También puede utilizar NerdGraph, nuestra API en formato GraphQL para [consultar datos](/docs/apis/nerdgraph/examples/nerdgraph-nrql-tutorial) o [configurar la administración de logs](/docs/apis/nerdgraph/examples/nerdgraph-log-parsing-rules-tutorial).

* En la página <DNT>**Errors inbox**</DNT> :

1. En el menú browser de la izquierda, haga clic en <DNT>**Errors**</DNT>.
2. Haga clic en las páginas <DNT>**Triage**</DNT> y <DNT>**Group errors**</DNT> para ver los logs adjuntos a los errores.
</Step>
</Steps>

## Consumo de datos [#data-consumption]

Los logs siguen el mismo precio de consumo que los demás bytes de su browser . La cantidad de bytes producidos depende del número y la longitud de los mensajes.

La función de logging automático elimina la necesidad de llamar a `newrelic.log` la `newrelic.wrapLogger` browser API o, excepto cuando se agrega un atributo personalizado al evento de registro.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ La extensión del complemento New Relic Gradle le permite configurar el comporta
</td>

<td>
Excluya variantes específicas de la instrumentación durante las compilaciones. Valor predeterminado: 'Ninguno'
Excluya variantes específicas de la instrumentación durante las compilaciones. Valor predeterminado: &apos;Ninguno&apos;
</td>
</tr>

Expand All @@ -61,7 +61,21 @@ La extensión del complemento New Relic Gradle le permite configurar el comporta
</td>

<td>
Excluir clases específicas cuyo nombre de paquete comience con o incluya patrones de nombres de clase de la instrumentación durante las compilaciones. Esta característica puede ayudar cuando se encuentran datos de clase confidenciales o problemáticos. Valor predeterminado: 'Ninguno'
Excluir clases específicas cuyo nombre de paquete comience con o incluya patrones de nombres de clase de la instrumentación durante las compilaciones. Esta característica puede ayudar cuando se encuentran datos de clase confidenciales o problemáticos. Valor predeterminado: &apos;Ninguno&apos;

Compatible cuando se usa con Gradle 7.4 y superior.
</td>
</tr>

<tr>
<td>
`logInstrumentationEnabled`
</td>

<td>
Reemplaza las Android Util Log Classes con el NewRelic Log Method para generar reportes de log

* Por defecto: `true`

Compatible cuando se usa con Gradle 7.4 y superior.
</td>
Expand All @@ -72,10 +86,7 @@ La extensión del complemento New Relic Gradle le permite configurar el comporta
A continuación se muestran algunos ejemplos sencillos que muestran cómo aplicar opciones de configuración de complementos al agente:

<CollapserGroup>
<Collapser
id="app-level"
title="Ejemplo de build.gradle a nivel de aplicación"
>
<Collapser id="app-level" title="Ejemplo de build.gradle a nivel de aplicación">
Para configurar el complemento con valores predeterminados:

```gradle
Expand All @@ -91,14 +102,14 @@ A continuación se muestran algunos ejemplos sencillos que muestran cómo aplica
// Exclude sample classes from instrumentation (regexp supported)
excludePackageInstrumentation("")
// Enable log instrumentation
logInstrumentationEnabled true
}
```
</Collapser>

<Collapser
id="app-level"
title="Habilitar cargas de mapas para múltiples variantes"
>
<Collapser id="app-level" title="Habilitar cargas de mapas para múltiples variantes">
Se pueden especificar varios tipos de compilación, separados por comas:

```gradle
Expand All @@ -109,10 +120,7 @@ A continuación se muestran algunos ejemplos sencillos que muestran cómo aplica
```
</Collapser>

<Collapser
id="app-level"
title="Desactivar cargas de mapas"
>
<Collapser id="app-level" title="Desactivar cargas de mapas">
Para deshabilitar completamente la carga de mapas, use una cadena vacía:

```gradle
Expand All @@ -123,10 +131,7 @@ A continuación se muestran algunos ejemplos sencillos que muestran cómo aplica
```
</Collapser>

<Collapser
id="app-level"
title="Deshabilitar la instrumentación de variantes de depuración."
>
<Collapser id="app-level" title="Deshabilitar la instrumentación de variantes de depuración.">
Se pueden especificar varios tipos de compilación, separados por comas:

```gradle
Expand All @@ -137,10 +142,7 @@ A continuación se muestran algunos ejemplos sencillos que muestran cómo aplica
```
</Collapser>

<Collapser
id="app-level"
title="Deshabilitar la instrumentación de clases específicas."
>
<Collapser id="app-level" title="Deshabilitar la instrumentación de clases específicas.">
Puede especificar múltiples patrones de paquetes, separados por comas, con soporte para patrones Regexp:

```gradle
Expand All @@ -150,4 +152,15 @@ A continuación se muestran algunos ejemplos sencillos que muestran cómo aplica
}
```
</Collapser>
</CollapserGroup>

<Collapser id="app-level" title="Deshabilitar la instrumentación de log">
Para deshabilitar la instrumentación de log:

```gradle
newrelic {
// disable log instrumentation
logInstrumentationEnabled false
}
```
</Collapser>
</CollapserGroup>
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ freshnessValidatedDate: never
translationType: machine
---

<Callout variant="important">
Obsolescencia y fin del soporte para el paquete NuGet de NewRelic para Xamarin.

El 1 de mayo de 2024, Microsoft finalizará el soporte para todos los SDK de Xamarin. Por este motivo, dejaremos obsoleto el paquete NuGet de NewRelic para Xamarin en julio de 2024. Le informaremos en qué próxima versión del paquete solo corregiremos errores y abordaremos problemas de seguridad importantes.

Además, de acuerdo con la Política de soporte de NewRelic, finalizaremos el soporte para el paquete NewRelic Xamarin NuGet en julio de 2025.

Le recomendamos que actualice sus proyectos Xamarin a .NET y emplee el paquete NuGet NewRelic .NET MAUI en lugar del paquete NuGet Xamarin obsoleto.
</Callout>

Nuestro agente de New Relic Xamarin monitorea su aplicación móvil de Xamarin y proporciona información detallada y valiosa sobre el rendimiento, los errores y la experiencia del usuario de su aplicación. Una vez que instale y configure el agente de Xamarin, podrá:

* <DNT>**Capture C# errors:**</DNT> Identifique y solucione problemas rápidamente.
Expand Down Expand Up @@ -82,11 +92,11 @@ Si necesita instalar el agente manualmente, siga estos pasos:
Application.Current.PageDisappearing += PageDisappearing;
CrossNewRelicClient.Current.HandleUncaughtException();
CrossNewRelicClient.Current.TrackShellNavigatedEvents();

// Set optional agent configuration
// Options are: crashReportingEnabled, loggingEnabled, logLevel, collectorAddress,
// crashCollectorAddress, analyticsEventEnabled, networkErrorRequestEnabled,
// networkRequestEnabled, interactionTracingEnabled, webViewInstrumentation, fedRampEnabled,
// Options are: crashReportingEnabled, loggingEnabled, logLevel, collectorAddress,
// crashCollectorAddress, analyticsEventEnabled, networkErrorRequestEnabled,
// networkRequestEnabled, interactionTracingEnabled, webViewInstrumentation, fedRampEnabled,
// offlineStorageEnabled, newEventSystemEnabled, backgroundReportingEnabled
// AgentStartConfiguration agentConfig = new AgentStartConfiguration(crashReportingEnabled:false);
Expand All @@ -95,7 +105,7 @@ Si necesita instalar el agente manualmente, siga estos pasos:
CrossNewRelicClient.Current.Start("YOUR_APP_TOKEN");
// Start with optional agent configuration
// CrossNewRelicClient.Current.Start("YOUR_APP_TOKEN", agentConfig);
}
}
else if (Device.RuntimePlatform == Device.iOS)
{
CrossNewRelicClient.Current.Start("YOUR_APP_TOKEN");
Expand Down Expand Up @@ -260,4 +270,4 @@ Las siguientes personalizaciones están disponibles para el agente de Xamarin.

¿Faltan datos HTTP en la UI?

Después de instalar el agente .NET MAUI, espere al menos 5 minutos. Si <DNT>**No HTTP data appears:**</DNT> en las páginas UI de errores HTTP y solicitudes HTTP, asegúrese de haber utilizado `HttpMessageHandler` en `HttpClient`.
Luego de instalar el agente Xamarin, espere al menos 5 minutos. Si aparece <DNT>**No HTTP data appears:**</DNT> en las páginas UI de errores HTTP y solicitudes HTTP, cerciorar de emplear `HttpMessageHandler` en `HttpClient`.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ La imagen del contenedor KTranslate tiene las configuraciones `-tee_logs=true` y
Si desea comprobar el registro localmente desde el host de la docker , ejecute `docker logs $CONTAINER_NAME`. Por ejemplo, `docker logs ktranslate-snmp`.
</Callout>

<Callout variant="tip">
Si desea comprobar el log localmente desde el paquete de Linux, ejecute `journalctl -u ktranslate`.
</Callout>

La opción `-tee_logs=true` envía el registro a New Relic al sondear dispositivos. Para verlos, haga lo siguiente:

1. Vaya a <DNT>**[one.newrelic.com &gt; All capabilities](https://one.newrelic.com/all-capabilities) &amp;gt; Logs**</DNT>.
Expand Down
Loading

0 comments on commit 0301718

Please sign in to comment.