struct OpenTelemetry::InstrumentationDocumentation::CrystalHttpClient

Overview

OpenTelemetry::Instrumentation::CrystalHttpClient

Instruments

Reference: https://crystal-lang.org/api/1.4.1/HTTP/Client.html

The HTTP::Client auto-instrumentation redefactirs the HTTP::Client#io method from a large method to a very small one, and moves most of the work into two new methods, HTTP::Client#do_connect and HTTP::Client#do_connect_ssl, which can then be instrumented, and can receive some additional code to capture some information which is normally discarded, but which the semantic conventions for HTTP spans calls for. It then uses a #def_around_exec block to complete the instrumentation.

Configuration

Version Restrictions

Methods Affected

Defined in:

opentelemetry/instrumentation/crystal/http_client.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

Instance Method Detail

def initialize #