Sha256: c15cf48d7177f471a33f4572acd49cacc23f857d9884df25d4506c486583002c
Contents?: true
Size: 697 Bytes
Versions: 5
Compression:
Stored size: 697 Bytes
Contents
# frozen_string_literal: true module ElasticAPM class Metadata # @api private class SystemInfo def initialize(config) @config = config @hostname = @config.hostname || `hostname`.chomp @architecture = gem_platform.cpu @platform = gem_platform.os container_info = ContainerInfo.read! @container = container_info.container @kupernetes = container_info.kupernetes end attr_reader :hostname, :architecture, :platform, :container, :kupernetes private def gem_platform @gem_platform ||= Gem::Platform.local end end end end require 'elastic_apm/metadata/system_info/container_info'
Version data entries
5 entries across 5 versions & 1 rubygems