Git Product home page Git Product logo

Comments (2)

devc007 avatar devc007 commented on September 21, 2024

hey @CodeBlanch!
I love to work on this but I don't know how to start.

from opentelemetry-dotnet.

CodeBlanch avatar CodeBlanch commented on September 21, 2024

@devc007

Let's add a section in here: https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/docs/metrics/customizing-the-sdk/README.md

Something at the bottom. Like "Advanced scenarios" maybe?

Advanced scenarios

View configuration using delegate

The following code snippet shows how to
use advanced selection criteria to customize the metrics output by the SDK. This requires
the user to provide a Func<Instrument, MetricStreamConfiguration> which offers
more flexibility in filtering the instruments to which the View should be
applied.

Caution

It is not recommended to use the delegate overload of the AddView API because it is not evaluated until the process is running and a measurement is recorded. The OpenTelemetry SDK will NOT throw exceptions when running. Any mistakes made using this overload will cause the View to be ignored. Exceptions will be written to the internal logging only. Use this API with caution and only when the more simple overloads cannot be used instead.

[Content goes here]

For the content you could start by just restoring what we removed: https://github.com/open-telemetry/opentelemetry-dotnet/pull/5554/files#diff-425a8f436c341c05d10b76aac12d1295330116295a3556990ddf3d2bdaffdaecL43-L53

from opentelemetry-dotnet.

Related Issues (20)

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.