• Log inStart now

View your OpenTelemetry data in New Relic

5 min

lab

This procedure is part of a lab that teaches you how to instrument your application with OpenTelemetry.

Each procedure in the lab builds upon the last, so make sure you've completed the last procedure, Instrument your application with OpenTelemetry, before starting this one.

You've instrumented your weather forecast application with OpenTelemetry and you're sending metric and trace data to New Relic.

Here, you move to New Relic to see the kinds of detailed telemetry data that OpenTelemetry was able to collect automatically with just a few lines of SDK code.

View your data

Step 1 of 8

Log into New Relic.

Step 2 of 8

In the entity explorer, click the Weather-Forecast OpenTelemetry service:

Click Weather Forecast service in the entity explorer

This brings you to a service view that shows trace data from your application, including:

  • Response time
  • Throughput
  • Error rate

OpenTelemetry data on service view

Step 3 of 8

In the left-hand navigation, click Distributed tracing:

Distributed tracing view

This shows trace data that the OpenTelemetry SDK automatically captured in your service, such as:

  • Trace count
  • Trace duration
  • Trace groups
Step 4 of 8

Under Trace groups click the WeatherForecast group:

Trace group view

This group shows similar traces. Since your application has only one endpoint, all traces are grouped together.

Step 5 of 8

Click one of the traces:

Trace view

Because your weather application is simple, there is only one span in the trace.

Step 6 of 8

Click on the span:

Trace spans view

Here, you see information about the particular span, including not only performance metrics, but also attributes that OpenTelemetry sent.

Step 7 of 8

Click Attributes:

Span detail view

You configured many of the attributes you see here in your SDK code.

Step 8 of 8

While New Relic doesn't yet have a curated experience for .NET OpenTelemetry metrics data, you can see the metrics in the metrics explorer:

Metrics explorer

Summary

As the developer of WeatherForecast, you've now instrumented your application with OpenTelemetry to send automatically collected metrics and traces to New Relic. And because you instrumented your app with OpenTelemetry instead of a .NET agent, you are more flexible in how you can use your data. For example, if you want to add additional backend data sources besides New Relic, you can easily change that without having to add another vendor-specific agent.

Homework

Now that you know how to instrument a .NET application with OpenTelemetry and send that data to New Relic, here are some things you can do next to familiarize yourself even more with New Relic and OpenTelemetry:

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.