Skip to content

Commit

Permalink
Merge pull request #4958 from svetlanabrennan/patch-2
Browse files Browse the repository at this point in the history
Add a section about New Relic OTel examples
  • Loading branch information
zuluecho9 committed Nov 18, 2021
2 parents 53ff8aa + 4688456 commit 24955b3
Showing 1 changed file with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ To complete this third step, first familiarize yourself with some required New R

Before you go to the external OTLP exporter documentation, consult the table below so you're ready to do the following:

* Configure the OTLP exporter to add a header ( ```api-key``` ) whose value is your account license key.
* Configure the OTLP exporter to add a header (```api-key```) whose value is the license key for the New Relic account you want to send data to.
* Based on your region, configure the endpoint where the exporter sends data to New Relic.

<table>
Expand All @@ -71,8 +71,8 @@ Before you go to the external OTLP exporter documentation, consult the table bel
<th>gRPC</th>
<th>HTTP/1.1</th>
<th>Endpoint</th>
<th>API Header Name</th>
<th>API Header Value</th>
<th>API header name</th>
<th>API header value</th>
<th>TLS encryption required</th>
</tr>
</thead>
Expand All @@ -83,16 +83,16 @@ Before you go to the external OTLP exporter documentation, consult the table bel
<td>❌</td>
<td><a href="https://otlp.nr-data.net:4317" target="_blank" rel="noopener noreferrer">https://otlp.nr-data.net:4317</a></td>
<td>`api-key`</td>
<td><a href="https://one.newrelic.com/launcher/api-keys-ui.launcher" target="_blank" rel="noopener noreferrer">License Key</a></td>
<td><a href="https://one.newrelic.com/launcher/api-keys-ui.launcher">License key</a></td>
<td>✅</td>
</tr>
<tr>
<td>EU</td>
<td>✅</td>
<td>❌</td>
<td><a href="https://otlp.eu01.nr-data.net:4317" target="_blank" rel="noopener noreferrer">https://otlp.eu01.nr-data.net:4317</a></td>
<td><a href="https://otlp.eu01.nr-data.net:4317">https://otlp.eu01.nr-data.net:4317</a></td>
<td>`api-key`</td>
<td><a href="https://one.newrelic.com/launcher/api-keys-ui.launcher" target="_blank" rel="noopener noreferrer">License Key</a></td>
<td><a href="https://one.newrelic.com/launcher/api-keys-ui.launcher">License key</a></td>
<td>✅</td>
</tr>
</tbody>
Expand Down Expand Up @@ -173,7 +173,7 @@ service:
processors: [batch]
exporters: [otlp]
```
2. Run the OpenTelemetry collector, making sure you replace <var>OTLP_ENDPOINT_HERE</var> with the appropriate [endpoint](#review-settings) and replace <var>YOUR_KEY_HERE</var> with your [Account License Key](https://one.newrelic.com/launcher/api-keys-ui.launcher):
2. Run the OpenTelemetry collector, making sure you replace <var>OTLP_ENDPOINT_HERE</var> with the appropriate [endpoint](#review-settings) and replace <var>YOUR_KEY_HERE</var> with your account's [license key](https://one.newrelic.com/launcher/api-keys-ui.launcher):

```
export OTEL_EXPORTER_OTLP_ENDPOINT=<var>OTLP_ENDPOINT_HERE</var>
Expand All @@ -197,9 +197,10 @@ Once you’ve instrumented your service and configured it to export its data to

The UI for OpenTelemetry has some similarities to the APM agent UI, so if you are familiar with that, you can go right to the UI. If you need help understanding your OpenTelemetry UI options or how to make sure your data appears in the UI, see [View your OpenTelemetry data in New Relic](/docs/integrations/open-source-telemetry-integrations/opentelemetry/view-your-opentelemetry-data-new-relic).

## View our OpenTelemetry examples [#examples]

View some of [our examples for using OpenTelemetry with New Relic](https://github.com/newrelic/newrelic-opentelemetry-examples).

## What's next? [#next]

After you do your initial setup, check out our
[best-practices](/docs/integrations/open-source-telemetry-integrations/opentelemetry/opentelemetry-concepts/) guide for tips
about various configurations to improve your use of OpenTelemetry and
New Relic.
After you do your initial setup, check out our [best-practices](/docs/integrations/open-source-telemetry-integrations/opentelemetry/opentelemetry-concepts/) guide for tips about various configurations to improve your use of OpenTelemetry and New Relic.

0 comments on commit 24955b3

Please sign in to comment.