惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

A
About on SuperTechFans
Y
Y Combinator Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Microsoft Security Blog
Microsoft Security Blog
aimingoo的专栏
aimingoo的专栏
I
InfoQ
C
Check Point Blog
IT之家
IT之家
MyScale Blog
MyScale Blog
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
Last Week in AI
Last Week in AI
GbyAI
GbyAI
P
Proofpoint News Feed
量子位
Stack Overflow Blog
Stack Overflow Blog
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
人人都是产品经理
人人都是产品经理
B
Blog
T
The Blog of Author Tim Ferriss
H
Help Net Security
云风的 BLOG
云风的 BLOG

Luca Cavallin

AI Engineering for Developers | Blog AI Engineering for Developers Platform Engineering End-to-End | Blog Google Cloud Networking 101: The Comprehensive TLDR | Blog Google Cloud Networking 101: The Comprehensive TLDR Containers Are Not Automatically Secure | Blog Containers Are Not Automatically Secure Watery Stone Beacon | Photography Blue Iceman Suture | Photography Hidden Emerald Pool | Photography Autumn Chapel Pinnacles | Photography A Tour of eBPF in the Linux Kernel: Observability, Security and Networking | Blog A Tour of eBPF in the Linux Kernel: Observability, Security and Networking Shared Violet Pulse | Photography Kubernetes Networking from Packets to Pods | Blog An Overview of Network Protocols | Blog An Overview of Network Protocols A Quick Journey Into the Linux Kernel | Blog A Quick Journey Into the Linux Kernel OpenTelemetry: A Guide to Observability with Go | Blog I'm on the Cillers Podcast Talking About Tech and Hackathons | Blog Yet Another List of Random Opinions on Writing Readable Code and Other Rants | Blog My post about Istio is now on the Istio blog too! | Blog Tropical Jungle Escape | Photography The Istio Service Mesh for People Who Have Stuff to Do | Blog Dreamy Cartoonscape Windmill | Photography Twilight Windmill Reflections | Photography Notes I took while reading "Applied Machine Learning and AI for Engineers" and "Introducing MLOps" | Blog Things I've Learned About Terraform That I Keep Telling People About | Blog Analyzing Unsplash Photo Performance with Python | Blog
CI/CD Observability on GitHub Actions and the Role of Ope...
Luca Cavallin · 2024-05-17 · via Luca Cavallin

CI/CD observability is about monitoring and understanding the automated processes in software development and deployment. Just like an app or a system, your CI/CD tool of choice can also provide metrics and other insights into the performance and health of pipelines, helping developers and their teams detect issues early and improve efficiency.

How OpenTelemetry is Improving CI/CD Observability

OpenTelemetry, an observability framework, collects and exports telemetry data such as traces, metrics, and logs from various processes. It standardizes how data is collected, making it easier for developers to analyze and visualize the workflow and identify bottlenecks or failures in their applications, and now, in development pipelines.

The effort is on-going, and the OpenTelemetry community is actively exploring improvements to CI/CD observability through various proposals:

  1. Semantic Conventions for CI/CD: OpenTelemetry is proposing new semantic conventions for telemetry data in CI/CD processes. These conventions aim to provide a standardized method for describing and collecting data from various CI/CD events, helping in more precise monitoring and troubleshooting.

  2. GitHub Actions Receiver: Another proposal includes the development of a GitHub Actions Receiver, which processes GitHub Actions webhook events to create trace data for workflow and job executions. This would allow for more detailed observability into the workflows directly from GitHub.

  3. DORA Metrics Extraction: Discussions are also underway about best practices for extracting DORA (DevOps Research and Assessment) metrics from CD pipelines. This involves measuring software delivery performance and can significantly enhance the feedback loop for development teams.

How to Observe GitHub Actions Workflows

A few options are currently available on the GitHub Actions marketplace to integrate OpenTelemetry into CI/CD workflows. These tools can provide greater visibility into GitHub Actions workflows, resulting in more reliable and efficient pipelines.

  1. krzko/run-with-telemetry: This action allows commands within GitHub Actions workflows to be executed with OpenTelemetry instrumentation, capturing trace data.

  2. krzko/setup-telemetry: This tool ensures consistent telemetry across workflows by providing deterministic OpenTelemetry trace IDs and other necessary telemetry identifiers.

  3. krzko/export-job-telemetry: It exports job telemetry data, including resource attributes and timing data, to help monitor and optimize CI/CD performance.

Summary

In this (short) blog post we had a quick look at the concept of "CI/CD observability", a.k.a. the idea that CI/CD pipelines can and should be observable like any other system. OpenTelemetry, a tool for collecting data about software operations, is working on making these processes clearer and more effective. A few specific tools like krzko/run-with-telemetry, krzko/setup-telemetry and krzko/export-job-telemetry are available to "observe" GitHub Actions workflows. As CI/CD observability becomes more mainstream, we can expect more tools and best practices to emerge in the future.