Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

middleware_apm_windows

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

middleware_apm_windows

  • 2.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Middleware::RubyGem


Installation Steps

Build and Install Native Gem

  • Clone the repository and navigate to the root directory of repository

  • Install all the required gems

    bundle install
    
  • Build the native gem

    gem build
    
  • Install native gem

    gem install middleware_apm_*.gem 
    

Usage gem in ruby application

  • Add the gem to Gemfile

    # If the application is running in Linux environment
    gem "middleware_apm_linux"
    
    # If the application is running in Windows environment
    gem "middleware_apm_windows"
    
  • Add below code at initialization of your application

    # If the application is running in Linux environment
    require 'middleware/ruby_gem_linux'
    
    # If the application is running in Windows environment
    require 'middleware/ruby_gem_windows'
    
    Middleware::RubyGem.init
    
  • Set below listed environment variables

    Environment Variable NameSample ValueIs requiredDescription
    OTEL_EXPORTER_OTLP_ENDPOINThttp://localhost:9320YesEndpoint to send the collected data.
    OTEL_SERVICE_NAMEDemo Service NameNoYour Service Name.
    OTEL_RESOURCE_ATTRIBUTESproject.name="Demo Project Name"NoYour Project Name.
    MW_API_KEY{Your API Key}If Linux then Yes / If windows then NoIt is used for profiling.
  • Run your application

    • Example: If its a ruby-on-rails application
      rails server
      
Note: Profiling is not supported for windows application.

FAQs

Package last updated on 27 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc