• Log inStart now

Instrument and Analyze OpenTelemetry data

You're the developer of a recently released, lightning-fast database, called speedeedeebee; people can't stop talking about it! Surprised by the spike in popularity, you've decided to start collecting traces from your application so you can analyze them in New Relic.

You first thought about using our Python agent, but before going through the efforts of setting that up, you heard about the "future of instrumentation", called OpenTelemetry, and you decided to reconsider.

OpenTelemetry is a standard for how to collect and send telemetry data to any backend observability platform. It's open source, flexible, and ubiquitous. Convinced that OpenTelemetry is indeed the future, you set off to use it in your application.

Objectives

  • Manually instrument a Python application with OpenTelemetry
  • Analyze the telemetry data in New Relic

Requirements

Procedures

1. Set up your lab environment

Spin up your database application and simulator

5 min

2. Instrument your application with OpenTelemetry

Manually instrument your application with the OpenTelemetry Python SDK

5 min

3. View your OpenTelemetry data in New Relic

View your OpenTelemetry data in New Relic

5 min

4. Send a custom span event

Update your code to send a custom span event

5 min
Copyright © 2024 New Relic Inc.

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