Giter Site home page Giter Site logo

jgomezf / newrelic-opentelemetry-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from newrelic/newrelic-opentelemetry-examples

0.0 0.0 0.0 20.12 MB

Examples for sending OpenTelemetry sourced data to New Relic.

License: Apache License 2.0

Shell 1.52% JavaScript 8.87% Python 3.97% Java 67.23% Go 2.41% C# 12.79% PowerShell 0.59% Dockerfile 2.62%

newrelic-opentelemetry-examples's Introduction

Example Code header

New Relic OpenTelemetry Examples

This project contains examples illustrating usage of OpenTelemetry with New Relic. The examples aim to demonstrate the most common configurations we expect users to encounter, but isn't an exhaustive set of the ways you can use OpenTelemetry with New Relic. The examples generally adhere to the following principles:

  • Use the latest version of each language's OpenTelemetry API / SDK.
  • Demonstrate using simple web service applications using a popular library / framework for each language.
  • Demonstrate manual configuration of OpenTelemetry SDK to send data to New Relic for traces, metrics, and logs.
    • Export data to New Relic over OTLP using protocol most idiomatic for the language, and defaulting to http/protobuf when there is no clear preference.
    • Configure metrics to export using delta temporality preference.
    • Configure attribute limits to adhere to New Relic's limits on attribute length and count.
  • Demonstrate auto instrumentation / agent configuration if offered by a language.
    • Use environment variables / system properties to configure OTLP export, delta metrics export, and attribute limits aligned with manual configuration of SDK.

The following table details features currently demonstrated by the example.

+ means the feature is covered, - means it is not covered, and N/A means feature is not available yet.

Java .NET JS Go Python Collector[1]
Configure SDK for New Relic
    Collect traces + + + + + +
    Collect metrics + + + + + +
    Collect logs + + N/A N/A N/A +
    Export over OTLP + + + + + +
    Export metrics w/ delta temporality + + + + + +
    Adhere to attribute limits + + + + + +
Configure auto instrumentation / agent for New Relic + + + N/A N/A N/A

[1] The collector has a different architecture and serves a different purpose than the language SDKs. Therefore, an apples-to-apples comparison to SDKs doesn't make sense. The table roughly indicates whether the feature is illustrated in the example collector configuration, even though the feature may not mean exactly the same thing as it does in the context of an SDK.

See Contribute for how to request OpenTelemetry/New Relic interactions be covered across all supported languages, or how to request a new language be added.

Getting Started

  1. Clone this repo.
  2. Follow the directions in the README of the example that you are interested in.

Examples Index

Contribute

We encourage your contributions to improve newrelic-opentelemetry-examples! Keep in mind that when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. You only have to sign the CLA one time per project.

Any contributions made outside the scope of the example matrix will not be considered. If your contribution is not for an existing OpenTelemetry/New Relic interaction and language, please first open an issue so the additional scope can be discussed. Any new OpenTelemetry/New Relic interaction will need to be covered by all supported languages. Any new language will need to cover all OpenTelemetry/New Relic interactions. If the scope is accepted, then the example matrix can be updated, and the new contribution will be reviewed.

If you have any questions, or to execute our corporate CLA (which is required if your contribution is on behalf of a company), drop us an email at [email protected].

A note about vulnerabilities

As noted in our security policy, New Relic is committed to the privacy and security of our customers and their data. We believe that providing coordinated disclosure by security researchers and engaging with the security community are important means to achieve our security goals.

If you believe you have found a security vulnerability in this project or any of New Relic's products or websites, we welcome and greatly appreciate you reporting it to New Relic through HackerOne.

If you would like to contribute to this project, review these guidelines.

To all contributors, we thank you! Without your contribution, this project would not be what it is today.

License

newrelic-opentelemetry-examples is licensed under the Apache 2.0 License.

newrelic-opentelemetry-examples also uses source code from third-party libraries. You can find full details on which libraries are used and the terms under which they are licensed in the third-party notices document.

newrelic-opentelemetry-examples's People

Contributors

a-feld avatar aelianr avatar alanwest avatar cwildman avatar danstadlernewrelic avatar dependabot[bot] avatar eddieeldridge avatar jack-berg avatar jonatns avatar kolanos avatar melissaklein24 avatar michaelgoin avatar nrcventura avatar reese-lee avatar sharrmander avatar svetlanabrennan avatar tylerhelmuth avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.