ibmmqotel

package
v5.6.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package ibmmqotel provides an interface between an OpenTelemetry-instrumented Go program and the IBM MQ client. It is a separate package to avoid dragging OTel dependencies into applications that are not using OTel.

It is essentially a propagator, transforming Span/Trace information in and out of the MQ Message Properties that are carried between MQ nodes.

The main ibmmq package has the hook points in place to allow this package to register itself and be called at the appropriate points

An instrumented application needs to

  • Import this package

  • call ibmmqotel.Setup()

  • set Ctx field in MQPMO/MQGMO structures passed to the Put/Get/CB verbs in the ibmmq package, passing the relevant context associated with the current Span

If using the MQCB/CallbackFunc for asynchronous consumption, the Context is available in the MQCBD structure as the Ctx field

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetTrace

func SetTrace(b bool)

This is a public function so it could be called dynamically by an application at runtime

func Setup

func Setup()

This is the function that applications have to call, to ensure the OTel interface is available.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL