Added
-
Add a
collector_endpointconfiguration option (APPSIGNAL_COLLECTOR_ENDPOINTenvironment variable) that puts the integration in collector mode. In collector mode AppSignal reports traces, metrics and logs to an AppSignal Collector, over OTLP/HTTP.Collector mode requires Ruby 3.1 or newer, and the OpenTelemetry gems, which are not installed by default. Add the
appsignal-opentelemetrygem alongsideappsignalto install them. When they are missing or too old, AppSignal logs a warning and keeps reporting through its agent. -
Add configuration options that map to OpenTelemetry resource attributes in collector mode:
service_name,filter_attributes,filter_function_parameters,filter_request_query_parameters,filter_request_payload,response_headers,send_function_parameters,send_request_query_parametersandsend_request_payload.In collector mode, existing options are passed to the collector as resource attributes as well:
name, environment,hostname,revision,ignore_actions,ignore_errors,ignore_namespaces,request_headers,filter_session_dataandsend_session_data.Setting any of these without
collector_endpoint, or settingfilter_parameters,filter_metadataorsend_paramswith it, logs a warning at startup.
Added
-
Add the
appsignal-opentelemetrygem. It installs the OpenTelemetry gems that AppSignal needs to run in collector mode. Add it alongsideappsignalto opt into collector mode with a single gem instead of listing each OpenTelemetry gem yourself:Rubygem "appsignal" gem "appsignal-opentelemetry"Collector mode requires Ruby 3.1 or newer, so this gem does too. Its version stays in lockstep with the
appsignalgem.
View the Ruby gem v5.0.0.rc.1 changelog for more information.