Sha256: 4503728a8d089d551fc1cf13d2e6b244e8f3d2606f900db2d08a8aba7f8d0997
Contents?: true
Size: 731 Bytes
Versions: 14
Compression:
Stored size: 731 Bytes
Contents
# frozen_string_literal: true require_relative "../../version" require "securerandom" module Aspecto module OpenTelemetry module Resource module Detectors # Aspecto OpenTelemetry Resource Detector module Aspecto extend self def detect resource_attributes = {} resource_attributes["aspecto.version"] = ::Aspecto::OpenTelemetry::VERSION # this should eventually be set in service detector resource_attributes[::OpenTelemetry::SemanticConventions::Resource::SERVICE_INSTANCE_ID] = SecureRandom.uuid ::OpenTelemetry::SDK::Resources::Resource.create(resource_attributes) end end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems