All Projects → lovoo → gcloud-opentracing

lovoo / gcloud-opentracing

Licence: BSD-3-Clause license
OpenTracing Tracer implementation for GCloud StackDriver in Go.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to gcloud-opentracing

Go Microservice Helpers
A collection of handy snippets that simplify creation of GRPC servers and clients
Stars: ✭ 400 (+809.09%)
Mutual labels:  grpc, tracing, opentracing
microservices-demo
A Monorepo Demoing Microservices Architecture
Stars: ✭ 36 (-18.18%)
Mutual labels:  tracing, opentracing
nodejs
Node.js in-process collectors for Instana
Stars: ✭ 66 (+50%)
Mutual labels:  tracing, opentracing
java-jaxrs
OpenTracing Java JAX-RS instrumentation
Stars: ✭ 37 (-15.91%)
Mutual labels:  tracing, opentracing
Grpc Gke Nlb Tutorial
gRPC load-balancing on GKE using Envoy
Stars: ✭ 42 (-4.55%)
Mutual labels:  google-cloud, grpc
Drachtio Freeswitch Modules
A collection of open-sourced freeswitch modules that I use in various drachtio applications
Stars: ✭ 73 (+65.91%)
Mutual labels:  google-cloud, grpc
jaeger-node
Out of the box distributed tracing for Node.js applications.
Stars: ✭ 66 (+50%)
Mutual labels:  tracing, opentracing
Csharp Grpc
OpenTracing Instrumentation for gRPC
Stars: ✭ 40 (-9.09%)
Mutual labels:  grpc, opentracing
axios-opentracing
Axios interceptor which traces your requests 👀
Stars: ✭ 15 (-65.91%)
Mutual labels:  tracing, opentracing
ruby-sensor
💎 Ruby Distributed Tracing & Metrics Sensor for Instana
Stars: ✭ 23 (-47.73%)
Mutual labels:  tracing, opentracing
nginx-opentracing
Instrument nginx for OpenTracing.
Stars: ✭ 21 (-52.27%)
Mutual labels:  tracing, opentracing
Microservices Demo
Sample cloud-native application with 10 microservices showcasing Kubernetes, Istio, gRPC and OpenCensus.
Stars: ✭ 11,369 (+25738.64%)
Mutual labels:  google-cloud, grpc
bazel-cache
Minimal cloud oriented Bazel gRPC cache
Stars: ✭ 33 (-25%)
Mutual labels:  google-cloud, grpc
java-concurrent
OpenTracing-aware helpers related to java.util.concurrent
Stars: ✭ 36 (-18.18%)
Mutual labels:  tracing, opentracing
Perfmark
PerfMark is a High Performance Tracing Library.
Stars: ✭ 112 (+154.55%)
Mutual labels:  grpc, tracing
smallrye-opentracing
An MicroProfile-OpenTracing implementation
Stars: ✭ 17 (-61.36%)
Mutual labels:  tracing, opentracing
easeagent
An agent component for the Java system
Stars: ✭ 437 (+893.18%)
Mutual labels:  tracing, opentracing
Familybucket
集合.net core、ocelot、consul、netty、rpc、eventbus、configserver、tracing、sqlsugar、vue-admin、基础管理平台等构建的微服务一条龙应用
Stars: ✭ 629 (+1329.55%)
Mutual labels:  grpc, tracing
stackdriver-to-discord
[Unmaintained] ⚙️ A simple Google Cloud Function in Go to transform / proxy Stackdriver Static Webhook notifications to Discord.
Stars: ✭ 18 (-59.09%)
Mutual labels:  google-cloud, stackdriver
feign-opentracing
OpenTracing Feign integration
Stars: ✭ 20 (-54.55%)
Mutual labels:  tracing, opentracing

GoDoc

gcloud-opentracing

OpenTracing Tracer implementation for GCloud StackDriver in Go. Based on basictracer and implemented Recorder for this propose.

Getting Started


To install gcloud-opentracing, use go get:

go get github.com/lovoo/gcloud-opentracing

or govendor:

govendor fetch github.com/lovoo/gcloud-opentracing

or other tool for vendoring.

Sample Usage


First of all, you need to init Global Tracer with GCloud Tracer:

package main

import (
    "log"

    trace "cloud.google.com/go/trace/apiv1"
    gcloudtracer "github.com/lovoo/gcloud-opentracing"
    opentracing "github.com/opentracing/opentracing-go"
    basictracer "github.com/opentracing/basictracer-go"
    "golang.org/x/net/context"
)

func main() {
    // ...
    client, err := trace.NewClient(context.Background() /*auth options here if necessary*/)
    if err != nil {
      log.Fatalf("error creating a tracing client: %v", err)
    }

    recorder, err := gcloudtracer.NewRecorder(context.Background(), "gcp-project-id", client)
    if err != nil {
      log.Fatalf("error creating a recorder: %v", err)
    }
    defer recorder.Close()

    opentracing.InitGlobalTracer(basictracer.New(recorder))
    // ...
}

Then you can create traces as decribed here. More information you can find on OpenTracing project website.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].