Git Product home page Git Product logo

oneagent-sdk-ruby-sample-binding's Introduction

Dynatrace OneAgent SDK Sample Binding for Ruby

DISCLAIMER: This project was developed as part of an innovation / hacker day from Dynatrace R&D. It is not complete, nor supported and only intended as a starting point for those wanting to integrate the OneAgent SDK for C/C++ with Ruby.

This repository provides a partial Ruby binding for the Dynatrace OneAgent SDK for C using FFI. The FFI module is defined in oneagentsdk.rb and sample code using it can be found in oneagentsdk_demo.rb.

Currently the bindings for the following features of the OneAgent SDK are implemented:

  • Incoming web request tracing
  • Outgoing web request tracing
  • SQL database query tracing

An object-oriented wrapper might be desirable when including the FFI module in your Ruby application, as the module's methods mostly resemble the plain C functions provided by the SDK. Please refer to the OneAgent SDK for C documentation for usage information.

The sample binding and demo app were tested with MRI/CRuby v2.5.1 and FFI v1.9.25 on Ubuntu 18.04 x64 with OneAgent SDK for C v1.2.0 so far.

Dependencies

Support

This project is NOT SUPPORTED and is provided "AS IS" by Dynatrace.
We welcome community work in this project! Extensions and fixes can be provided via pull request, to report issues and/or ask questions please use GitHub issues.

Further reading

oneagent-sdk-ruby-sample-binding's People

Contributors

arminru avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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

Forkers

deneor

oneagent-sdk-ruby-sample-binding's Issues

LoadError: Error relocating .../libonesdk_shared.so: __vsnprintf_chk: symbol not found

How to reproduce:

Error:

irb(main):001:0> require_relative 'oneagentsdk'
Traceback (most recent call last):
        8: from /usr/local/bin/irb:11:in `<main>'
        7: from (irb):1
        6: from (irb):1:in `require_relative'
        5: from /oneagentsdk.rb:25:in `<top (required)>'
        4: from /oneagentsdk.rb:29:in `<module:OneAgentSdk>'
        3: from /usr/local/bundle/gems/ffi-1.10.0/lib/ffi/library.rb:99:in `ffi_lib'
        2: from /usr/local/bundle/gems/ffi-1.10.0/lib/ffi/library.rb:99:in `map'
        1: from /usr/local/bundle/gems/ffi-1.10.0/lib/ffi/library.rb:145:in `block in ffi_lib'
LoadError (Could not open library './OneAgent-SDK-for-C/lib/linux-x86_64/libonesdk_shared.so': Error relocating ./OneAgent-SDK-for-C/lib/linux-x86_64/libonesdk_shared.so: __vsnprintf_chk: symbol not found)

Any guesses, how to fix it?

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.