module NewRelic::TelemetrySdk

Constants

API_INSERT_KEY
NEW_RELIC_PREFIX
RFC7230_TOKEN
USER_AGENT_NAME
VERSION

Public Class Methods

config() click to toggle source

Allows direct access to the config state. The primary purpose of this method is to access config properties throughout the SDK.

@note Unlike configuring with # {#self.configure}, setting config properties here

may, or may not become immediately active.  Use with care.

@api public

# File lib/newrelic/telemetry_sdk/configurator.rb, line 91
def self.config
  Configurator.config
end
configure() { |configurator| ... } click to toggle source

Set Telemetry SDK configuration with a block. See {Config} for options.

@example Setting the API Key

NewRelic::TelemetrySdk.configure do |config|
  config.api_insert_key = ENV["API_KEY"]
end

@api public

# File lib/newrelic/telemetry_sdk/configurator.rb, line 78
def self.configure
  configurator = Configurator.new
  yield configurator if block_given?
  configurator.configure
end
logger() click to toggle source
# File lib/newrelic/telemetry_sdk/logger.rb, line 86
def self.logger
  Logger.logger
end

Public Instance Methods

gem_version() click to toggle source
# File lib/newrelic/telemetry_sdk/version.rb, line 12
def gem_version
  Gem::Version.create VERSION
end