GithubHelp home page GithubHelp logo

qpc-github / opentelemetry-operations-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecloudplatform/opentelemetry-operations-js

1.0 2.0 1.0 5.94 MB

This repository is home to Google Cloud Exporters (Trace and Monitoring) for OpenTelemetry Node.js Project (https://github.com/open-telemetry/opentelemetry-js)

License: Apache License 2.0

Shell 0.45% JavaScript 21.74% TypeScript 76.85% Dockerfile 0.96%

opentelemetry-operations-js's Introduction

OpenTelemetry Operations Exporters for JavaScript

The packages in this repository support all officially supported Node.js versions (10, 12, 14, 16).

OpenTelemetry Google Cloud Trace Exporter

npm version

OpenTelemetry Google Cloud Trace Exporter allows the user to send collected traces to Google Cloud.

Google Cloud Trace is a distributed tracing system. It helps gather timing data needed to troubleshoot latency problems in microservice architectures. It manages both the collection and lookup of this data.

Getting Started

This exporter package assumes your application is already instrumented with the OpenTelemetry SDK. Once you are ready to export OpenTelemetry data, you can add this exporter to your application:

npm install --save @google-cloud/opentelemetry-cloud-trace-exporter

Add the exporter to your existing OpenTelemetry tracer provider (NodeTracerProvider / BasicTracerProvider)

const { TraceExporter } = require('@google-cloud/opentelemetry-cloud-trace-exporter');
const { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');
const { BatchSpanProcessor } = require('@opentelemetry/sdk-trace-base');


// Enable OpenTelemetry exporters to export traces to Google Cloud Trace.
// Exporters use Application Default Credentials (ADCs) to authenticate.
// See https://developers.google.com/identity/protocols/application-default-credentials
// for more details.

// Use your existing provider
const provider = new NodeTracerProvider();
provider.register();

// Initialize the exporter. When your application is running on Google Cloud,
// you don't need to provide auth credentials or a project id.
const exporter = new TraceExporter();

// Add the exporter to the provider
provider.addSpanProcessor(new BatchSpanProcessor(exporter));

See README.md for installation and usage information.

OpenTelemetry Google Cloud Trace Propagator

npm version

OpenTelemetry Google Cloud Trace Propagator allows other services to create spans with the right context.

See README.md for installation and usage information.

OpenTelemetry Google Cloud Monitoring Exporter

npm version

OpenTelemetry Google Cloud Monitoring Exporter allows the user to send collected metrics to Google Cloud Monitoring.

See README.md for installation and usage information.

opentelemetry-operations-js's People

Contributors

aabmass avatar blazingasher avatar dashpole avatar davidwitten avatar dependabot[bot] avatar dyladan avatar henrinormak avatar jbaldassari avatar jonahrosenblum avatar justinbeckwith avatar markwolff avatar mayurkale22 avatar reggiemcdonald avatar renovate-bot avatar rghetia avatar seanachai avatar shivkanya9146 avatar sinoohe avatar tapico-weyert avatar tigerhe7 avatar valerio avatar

Stargazers

 avatar

Watchers

 avatar  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.