Db2 for z/OS and its ecosystem

Db2 for z/OS and its ecosystem

Connect with Db2, Informix, Netezza, open source, and other data experts to gain value from your data, share insights, and solve problems.

 View Only

Bringing Db2 into Modern Observability Understanding OpenTelemetry and IFCID 394 in Db2 for z/OS

By Ashish Padhi posted 03/31/26 02:15 PM

  

Bringing Db2 into Modern Observability 

Understanding OpenTelemetry and IFCID 394 in Db2 for z/OS 

 

Abstract 

Enterprise applications are evolving toward hybrid cloud and distributed architectures. In these environments, observability is no longer optional, it is essential for system reliability, performance management, and rapid problem determination. 

OpenTelemetry has emerged as the industry standard for collecting and correlating telemetry data across heterogeneous platforms. 

With Db2 13 for z/OS, IBM introduced native OpenTelemetry support, allowing Db2 to participate directly in distributed tracing workflows. To support safe and controlled use of this capability in production, IBM also introduced IFCID 394, which provides lightweight, SMF‑based visibility into Db2 OpenTelemetry processing activity. 

This paper explains OpenTelemetry in the context of Db2 for z/OS, introduces IFCID 394, and demonstrates how traditional mainframe monitoring can integrate with modern observability frameworks without compromising stability or performance. 

 

1. Introduction 

Modern business transactions no longer execute within a single system boundary. 

A typical request may originate in a web interface, traverse middleware and cloud services, and complete on Db2 for z/OS. While platform‑specific monitoring remains valuable, it often fails to provide a complete view of such distributed transaction flows. 

OpenTelemetry addresses this limitation by standardizing how traces, metrics, and logs are collected and correlated across systems. With Db2 13 for z/OS, IBM extends this model to the mainframe, allowing Db2 to participate in end‑to‑end observability initiatives. 

To use this capability effectively in production, Db2 teams also require operational insight into telemetry behavior. IFCID 394 provides this visibility using existing SMF statistics infrastructure. 

 

2. OpenTelemetry Overview 

OpenTelemetry (OTel) is an open‑source observability framework maintained by the Cloud Native Computing Foundation (CNCF). 

It enables: 

·       End‑to‑end distributed tracing 

·       Correlation of performance data across platforms 

·       Vendor‑neutral instrumentation and data collection 

At its core, OpenTelemetry answers a fundamental operational question: 

What happened to my transaction across the entire system stack? 

 

3. OpenTelemetry in Db2 for z/OS 

Db2 13 introduces native OpenTelemetry support as part of the Db2 engine. With this support enabled, Db2 can: 

·       Accept distributed trace context from calling applications 

·       Propagate trace context as part of the unit of work 

·       Contribute Db2 processing information to enterprise tracing tools such as Jaeger or Dynatrace 

This capability shifts Db2 from being an isolated system of record to an observable participant in distributed transactions. Without Db2 visibility, traces become fragmented, reducing their diagnostic value and increasing incident resolution time. 

 

4. IFCID 394: Db2 OpenTelemetry Statistics 

IFCID 394 is a Db2 Statistics Trace Class 1 record introduced in Db2 13 to capture OpenTelemetry‑related processing activity inside Db2. 

Key Characteristics 

·       Collected via standard SMF 100 statistics records 

·       Automatically included when OpenTelemetry is active 

·       Lightweight and safe for production workloads 

·       Requires no additional or specialized tracing 

Why IFCID 394 Matters 

IFCID 394 provides clear answers to essential operational questions: 

·       Is OpenTelemetry enabled and active in Db2? 

·       How frequently is telemetry processing occurring? 

·       Has telemetry behavior changed following a rollout or configuration change? 

By leveraging familiar SMF statistics, IFCID 394 bridges traditional Db2 monitoring with modern observability practices, while maintaining strict control over overhead and risk. 

 

5. Prerequisites and Enablement 

Required Db2 APAR 

OpenTelemetry support in Db2 13 for z/OS is enabled by: APAR PH67971 

This APAR delivers: 

·       Db2 OpenTelemetry processing support 

·       The -START OTEL and -DISPLAY OTEL commands 

·       Emission of OpenTelemetry span records to SMF 

·       Statistics visibility through IFCID 394 

Without APAR PH67971 applied, OpenTelemetry cannot be started in Db2. The same APAR also introduces IFCID 394. 

 

Related z/OS Requirement (Optional) 

To export OpenTelemetry data from SMF to an external observability platform, z/OS provides the OpenTelemetry Emitter. 

This function is delivered by: 

APAR OA66345 – z/OS OpenTelemetry Emitter 

This APAR is required only for exporting telemetry data out of SMF. It is separate from Db2 OpenTelemetry enablement. 

 

Enablement Steps 

Once prerequisites are met, OpenTelemetry can be enabled using standard Db2 commands.

Start OpenTelemetry:
     -START OTEL 

      

Verify status: 

     -DISPLAY OTEL 

   

Ensure Statistics Class 1 is active: 

    -START TRACE(STAT) CLASS(1) 

     

SMF 100 collection must already be enabled. No additional trace definitions are required. 

Once OpenTelemetry is active, IFCID 394 data is collected automatically as part of standard statistics processing.

 

 

6. Performance Considerations 

Observability must not compromise system stability. 

IFCID 394 is designed for continuous, always‑on production use: 

·       Uses Statistics Class 1, which is commonly active in production 

·       Adds minimal CPU overhead 

·       Results in negligible increases in SMF volume 

·       Has no measurable impact on transaction response time in typical workloads 

 

7. Representative Use Cases 

Incident Analysis (Banking) 

Distributed traces indicate increased transaction latency, but Db2 involvement is unclear. IFCID 394 confirms whether Db2 OpenTelemetry processing was active, allowing teams to focus analysis quickly and accurately. 

Peak Load Events (Retail) 

During traffic surges, performance degradation may occur. IFCID 394 data can be reviewed alongside CPU utilization and DBAT metrics to distinguish workload pressure from observability overhead. 

Controlled Rollouts (Insurance / Public Sector) 

OpenTelemetry is enabled gradually under governance controls. IFCID 394 provides an auditable history of activation and behaviour changes over time. 

Enterprise Observability Integration 

Mainframe systems are often missing from distributed traces. With OpenTelemetry and IFCID 394, Db2 becomes visible across the full transaction path, eliminating traditional mainframe blind spots. 

 

8. Conclusion and Key Takeaways 

OpenTelemetry adoption is accelerating across enterprise environments. Db2 13 enables Db2 for z/OS to participate in modern observability workflows. 

IFCID 394 provides the visibility and governance required to use this capability safely in production. 

Together, OpenTelemetry and IFCID 394: 

·       Improve end‑to‑end transaction visibility 

·       Reduce troubleshooting time 

·       Preserve Db2 performance and reliability 

They transform Db2 from a perceived black box into a fully observable, measurable, and trusted component of modern enterprise systems. 

 

References 

  

IBM APAR PH67971 — IFCID 394 introduction
https://www.ibm.com/support/pages/apar/PH67971

OpenTelemetry tracing in Db2 for z/OS
https://www.ibm.com/docs/en/db2-for-zos/13.0.0?topic=recovery-opentelemetry-tracing-in-db2

Industry perspective: OpenTelemetry on IBM Z
https://planetmainframe.com/2025/09/how-opentelemetry-brings-observability-to-ibm-z/

0 comments
26 views

Permalink