Git Product home page Git Product logo

dotnet-otel-proxy's Introduction

.NET OpenTelemetry Proxy

This is a proxy for OpenTelemetry Protocol data written in .NET. This is a demo project for my twitch stream at https://twitch.tv/MartinDotNet

The overall goal is to understand how hard Tail-Based sampling is, and try out some new tools too. Some of the things on my list.

Anatomy of a tracing proxy

A tracing proxy has a few separate components that make it work, and this is what the project is aiming to build out so that we can see the challenges presented by each component. It looks a little like this.

Overview of the sampling proxy

Protobuf usage

The Proxy uses the opentelemetry-protobuf definitons as it's core. This is brought in through a submodule, and they're autogenerated for the API contract, and the export contract.

The tests use a statically generated and committed protobuf. This is so that the inbound requests to the proxy will always use a defined version, rather than uses the same source as the proxy itself. This way, we can ensure that even if the underlying protobuf definitions fail, the tests are sending the older versions that clients would use.

Generating OpenTelemetry Protobuf For the tests

Run the following commands in the root to generate new protobuf definitons for the tests.

git submodule update --init --recursive
protogen --proto_path=opentelemetry-proto/ --csharp_out=tests/Otel.Proxy.Tests/ **/*.proto

dotnet-otel-proxy's People

Contributors

martinjt avatar

Stargazers

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