{"id":20317588,"url":"https://github.com/dynatrace/oneagent-sdk-ruby-sample-binding","last_synced_at":"2025-04-11T17:55:32.868Z","repository":{"id":143388874,"uuid":"154128853","full_name":"Dynatrace/OneAgent-SDK-Ruby-Sample-Binding","owner":"Dynatrace","description":"This repository provides a partial Ruby binding for the Dynatrace OneAgent SDK for C using FFI.","archived":false,"fork":false,"pushed_at":"2019-04-01T15:27:16.000Z","size":16,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-25T13:51:11.919Z","etag":null,"topics":["apm","data-ingestion","dynatrace","monitoring","oneagent","ruby","sdk","tracing"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dynatrace.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-22T11:01:41.000Z","updated_at":"2025-01-08T22:59:22.000Z","dependencies_parsed_at":"2023-07-09T22:30:51.961Z","dependency_job_id":null,"html_url":"https://github.com/Dynatrace/OneAgent-SDK-Ruby-Sample-Binding","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dynatrace%2FOneAgent-SDK-Ruby-Sample-Binding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dynatrace%2FOneAgent-SDK-Ruby-Sample-Binding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dynatrace%2FOneAgent-SDK-Ruby-Sample-Binding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dynatrace%2FOneAgent-SDK-Ruby-Sample-Binding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dynatrace","download_url":"https://codeload.github.com/Dynatrace/OneAgent-SDK-Ruby-Sample-Binding/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248456295,"owners_count":21106601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apm","data-ingestion","dynatrace","monitoring","oneagent","ruby","sdk","tracing"],"created_at":"2024-11-14T18:33:38.604Z","updated_at":"2025-04-11T17:55:32.861Z","avatar_url":"https://github.com/Dynatrace.png","language":"Ruby","readme":"# Dynatrace OneAgent SDK Sample Binding for Ruby\r\n\r\n\u003e **DISCLAIMER**: This project was developed as part of an innovation / hacker day from Dynatrace R\u0026D. 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.\r\n\r\nThis repository provides a partial Ruby binding for the [Dynatrace OneAgent SDK for C](https://github.com/Dynatrace/OneAgent-SDK-for-C) using [FFI](https://github.com/ffi/ffi). The FFI module is defined in `oneagentsdk.rb` and sample code using it can be found in `oneagentsdk_demo.rb`.\r\n\r\nCurrently the bindings for the following features of the OneAgent SDK are implemented:\r\n* Incoming web request tracing\r\n* Outgoing web request tracing\r\n* SQL database query tracing\r\n\r\nAn 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](https://dynatrace.github.io/OneAgent-SDK-for-C/index.html) for usage information.\r\n\r\nThe 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.\r\n\r\n## Dependencies\r\n\r\n* [Dynatrace OneAgent SDK for C](https://github.com/Dynatrace/OneAgent-SDK-for-C) version 1.2.0 (and above)\r\n  * see its [documentation](https://github.com/Dynatrace/OneAgent-SDK-for-C#requirements) for requirements and compatible Dynatrace OneAgent versions\r\n* [Ruby FFI](https://github.com/ffi/ffi)\r\n\r\n\r\n## Support\r\nThis project is NOT SUPPORTED and is provided \"AS IS\" by Dynatrace.  \r\nWe 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.\r\n\r\n## Further reading\r\n\r\n* [What is the OneAgent SDK?](https://www.dynatrace.com/support/help/extend-dynatrace/oneagent-sdk/what-is-oneagent-sdk/) in the Dynatrace documentation\r\n* [Language independent documentation of the SDK's APIs and concepts](https://github.com/Dynatrace/OneAgent-SDK)\r\n* [Blog: Dynatrace OneAgent SDK for C: Service and transaction monitoring for C++ and other native applications](https://www.dynatrace.com/news/blog/dynatrace-oneagent-sdk-c-service-transaction-monitoring-c-native-applications/)\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynatrace%2Foneagent-sdk-ruby-sample-binding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdynatrace%2Foneagent-sdk-ruby-sample-binding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynatrace%2Foneagent-sdk-ruby-sample-binding/lists"}