Code Monkey home page Code Monkey logo

opentelemetry-instrumentation-digma's People

Contributors

asafc64 avatar asafchen-dig avatar doppleware avatar shaykeren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

madhavajay

opentelemetry-instrumentation-digma's Issues

class instrument decorator fails on static methods

Hi,
Thank you for building this library. I tried to use @Instrument decorator in my class and got to a problem that it seems like the decorator tries to push 'self' into static methods args.

Basic example:

@instrument
class Foo:
    @staticmethod
    def foo():
        pass

f = Foo()
f.foo()

Returns:

TypeError: foo() takes 0 positional arguments but 1 was given

Any suggestions?

Hardcoded OpenTelemetry version

I was interested in using the decorator you have built for tracing, but this package bundles a hardcoded opentelemetry version (1.12.0) that is old and contains bugs that have been fixed.

Export of test environment and commit info

Modify the exporter code to include two optional environment variables if they exist:

  1. ENVIRONMENT
  2. COMMIT_ID
    Both these values should be passed on to the server along with the error information

[Question] Can I use this without Digma ?

Hello,
I have a project full of opentracing/ opentelemetry span. I was looking on how to implement decorators and found your excelent article @doppleware

Since I have a lot of rework for moving opentracing -> opentelemetry, I wonder if I can do a step by step with this implementation.
And why not using Digma when I have some times.

regards

exporter to send array statistics instead of raw value

Write custom formatter for traceback that looks at the _locals and more intelligently decides what to do instead of automatically converting to string.

  1. If value is str and big (over 64 characters), record length [Done]
  2. If value is array and big (over 10 members), record length [Done]
  3. If value is object, don't serialize to str -- ignore [Done]
  4. If value is numeric, record value
  5. If value is boolean, record value

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.