GithubHelp home page GithubHelp logo

golangopentelemetry's Introduction

golangopentelemetry

1. Description

해당 코드는 opentelemtry, smaple code를 참고하여 작성되었습니다.
Trace를 사용할 때 필요한 셋팅을 해주는 코드입니다.

2. How to use

2.1. Setup()

사용할 때 우선 Setup을 먼저 해줘야 합니다.
Setup은 trace의 기본 설정을 해주는 함수입니다.

2.2. Shutdown()

사용이 끝난 후에는 Shutdown을 해주어야 합니다.
Trace는 기본적으로 context를 사용하기 때문에, 내부적으로 열려있는 소켓, 고루틴 등을 닫아주어야 합니다.

2.3. GetTracer()

Trace를 사용할 때 span을 직접 넣어주려면 GetTracer를 사용하여 Tracer를 가져와야 합니다.
사용할때는 우선 Setup()을 해준 후 사용해야 합니다.
example를 참고하여 사용하면 됩니다.

golangopentelemetry's People

Contributors

aitrics-ray avatar aitrics-rooney avatar leetaegeom avatar

Watchers

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