lib/openc3/utilities/open_telemetry.rb in openc3-5.7.2 vs lib/openc3/utilities/open_telemetry.rb in openc3-5.8.0
- old
+ new
@@ -1,8 +1,8 @@
# encoding: ascii-8bit
-# Copyright 2022 OpenC3, Inc.
+# Copyright 2023 OpenC3, Inc.
# All Rights Reserved.
#
# This program is free software; you can modify and/or redistribute it
# under the terms of the GNU Affero General Public License
# as published by the Free Software Foundation; version 3 with
@@ -11,11 +11,11 @@
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
-# This file may also be used under the terms of a commercial license
+# This file may also be used under the terms of a commercial license
# if purchased from OpenC3, Inc.
require 'openc3/utilities/bucket'
module OpenC3
@@ -58,11 +58,11 @@
split_services = ENV['OPENC3_OTEL'].to_s.split(',')
@otel_enabled = true if split_services.include?(service_name) or split_services.include?('ALL')
if @otel_enabled
require 'redis'
- require 'httpclient'
+ require 'faraday'
require 'openc3/utilities/bucket'
# Load the bucket client code so the instrumentation works later
Bucket.getClient()
require 'opentelemetry/sdk'
require 'opentelemetry/exporter/otlp'
@@ -84,10 +84,10 @@
# To include the full query, set db_statement to :include.
# To obfuscate, set db_statement to :obfuscate.
# To omit the attribute, set db_statement to :omit.
db_statement: :include,
}
- c.use 'OpenTelemetry::Instrumentation::HttpClient'
+ c.use 'OpenTelemetry::Instrumentation::Faraday'
c.use 'OpenTelemetry::Instrumentation::AwsSdk'
# TODO: Add in additional cloud SDKs
end
end
end