Sha256: 0f747ac1a26363e5f7fdc84e420063744a3892fa4b651b7543bd18d83e1d3784
Contents?: true
Size: 729 Bytes
Versions: 3
Compression:
Stored size: 729 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
3 entries across 3 versions & 1 rubygems