Tag

Instrumentation

0 views collected around this technical thread.

Architect
Architect
Jun 14, 2025 · Backend Development

Mastering Java Instrumentation: Non‑Intrusive Method Timing with Agents and Arthas

This article explains how to replace invasive manual timing code with Java Instrumentation, demonstrating both premain and agentmain approaches, building and attaching agents, using ASM and Bytekit for bytecode enhancement, and leveraging Arthas for runtime tracing and debugging.

ArthasBytecodeInstrumentation
0 likes · 22 min read
Mastering Java Instrumentation: Non‑Intrusive Method Timing with Agents and Arthas
Cognitive Technology Team
Cognitive Technology Team
Apr 16, 2025 · Backend Development

Automatic Trace-Wrapped ThreadPool Instances in Spring Cloud

This article explains how Spring Cloud automatically wraps managed thread pool beans with trace-enabled proxies to preserve distributed tracing information, details the ExecutorBeanPostProcessor implementation, shows the relevant configuration and instrumentation code, and notes that manually created executors must be wrapped manually.

InstrumentationJavaSpring Cloud
0 likes · 7 min read
Automatic Trace-Wrapped ThreadPool Instances in Spring Cloud
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Feb 21, 2025 · Mobile Development

UprobeStats: Dynamic User‑Space Instrumentation on Android via eBPF uprobe

UprobeStats, introduced in Android 15, uses the Linux kernel eBPF uprobe mechanism to dynamically insert probes into user‑space methods, capture timestamps and arguments, load BPF programs, and forward the data to StatsD via configurable protobufs, enabling flexible, source‑free instrumentation with minimal overhead.

BPFInstrumentationStatsD
0 likes · 16 min read
UprobeStats: Dynamic User‑Space Instrumentation on Android via eBPF uprobe
Architect
Architect
Nov 19, 2024 · Backend Development

Java Agent and Instrumentation: Non‑Intrusive Method Timing, Attach API, and Arthas Trace

This article demonstrates how to replace invasive manual timing code with Java Agent‑based instrumentation, covering the use of java.lang.instrument, premain and agentmain methods, dynamic class retransformation via the Attach API, and practical examples including method‑level timing, runtime class modification, and integration with Arthas for tracing.

ArthasBytecodeInstrumentation
0 likes · 20 min read
Java Agent and Instrumentation: Non‑Intrusive Method Timing, Attach API, and Arthas Trace
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 8, 2024 · Backend Development

Master Java Agent with Spring Boot 3: Real‑World API Latency Monitoring

This tutorial explains Java Agent technology, shows how to implement a custom agent using the Instrumentation API and Javassist, integrates it with a Spring Boot 3 application to log API execution time, and provides step‑by‑step packaging and execution instructions.

Bytecode ManipulationInstrumentationJava agent
0 likes · 10 min read
Master Java Agent with Spring Boot 3: Real‑World API Latency Monitoring
Code Ape Tech Column
Code Ape Tech Column
Oct 14, 2024 · Backend Development

Understanding Java Agent: Premain and Agentmain Modes with Instrumentation

This article explains the concept of Java Agent, compares it with AOP, and provides step‑by‑step implementations of both premain and agentmain modes, including Maven packaging, VM attachment, class transformation, redefinition, retransformation, and a Javassist example for method timing.

AgentmainBytecode ManipulationInstrumentation
0 likes · 17 min read
Understanding Java Agent: Premain and Agentmain Modes with Instrumentation
Airbnb Technology Team
Airbnb Technology Team
Sep 9, 2024 · Mobile Development

Implementing Page Performance Score on iOS: PPSStateMachine, Metrics, and Instrumentation

Airbnb’s iOS Page Performance Score implementation introduces a PPSStateMachine that ties a UIViewController’s lifecycle to metric collection—tracking first layout, initial load, scroll thread hangs, additional and rich content load times—using nanosecond timestamps, state‑machine protocols, and view‑responder discovery to emit standardized performance logs.

InstrumentationMetricsMobile Development
0 likes · 9 min read
Implementing Page Performance Score on iOS: PPSStateMachine, Metrics, and Instrumentation
Sohu Tech Products
Sohu Tech Products
Sep 5, 2024 · Backend Development

Instrumentation of gRPC in OpenTelemetry: Adding Request Size Metrics via Byte‑Buddy

The new OpenTelemetry Java instrumentation adds client and server request‑size metrics to gRPC by injecting a tracing interceptor via Byte‑Buddy bytecode enhancement, extracting payload sizes from protobuf messages, recording them with custom attributes and histograms, and applying analogous handler‑based logic for Go.

ByteBuddyInstrumentationJava
0 likes · 12 min read
Instrumentation of gRPC in OpenTelemetry: Adding Request Size Metrics via Byte‑Buddy
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 31, 2024 · Backend Development

Developing OpenTelemetry Instrumentation for PowerJob Using Java Agent and ByteBuddy

This article explains how to create OpenTelemetry instrumentation for the PowerJob distributed scheduler by implementing a Java agent with ByteBuddy, covering background, prerequisite knowledge, entry point discovery, version selection, implementation details, common pitfalls, Muzzle validation, and unit testing.

BackendByteBuddyInstrumentation
0 likes · 16 min read
Developing OpenTelemetry Instrumentation for PowerJob Using Java Agent and ByteBuddy
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 29, 2024 · Backend Development

Understanding JavaAgent: Principles, Implementation, and a Practical Timing Example

This article explains the concept of JavaAgent, its underlying mechanism using the JVM instrumentation API, and provides a step‑by‑step guide with code samples to build a JavaAgent that measures method execution time in a Spring application.

BytecodeInstrumentationJava
0 likes · 9 min read
Understanding JavaAgent: Principles, Implementation, and a Practical Timing Example
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 7, 2024 · Backend Development

Understanding and Implementing JavaAgent for Runtime Instrumentation

This article explains the concept, architecture, and practical implementation of JavaAgent for Java runtime instrumentation, covering its role, premain method, ClassFileTransformer usage, bytecode manipulation with ASM or Javassist, and step‑by‑step guidance to build, package, and attach a JavaAgent for method execution time monitoring.

BytecodeClassFileTransformerInstrumentation
0 likes · 10 min read
Understanding and Implementing JavaAgent for Runtime Instrumentation
Ctrip Technology
Ctrip Technology
Jun 14, 2024 · Frontend Development

Canyon: A JavaScript End‑to‑End Test Coverage Solution for Frontend Projects

Canyon extends the IstanbulJS ecosystem with a Babel‑based instrumentation plugin, real‑time coverage aggregation, and cloud‑native reporting to enable large‑scale end‑to‑end UI automation coverage for modern JavaScript front‑end applications, including SPA, MPA, and React Native environments.

CI/CDCanyonCode Coverage
0 likes · 19 min read
Canyon: A JavaScript End‑to‑End Test Coverage Solution for Frontend Projects
Sohu Tech Products
Sohu Tech Products
Apr 17, 2024 · Operations

Developing an OpenTelemetry Extension for Pulsar Java Client Metrics

The article walks through building a custom OpenTelemetry Java‑agent extension for Pulsar client metrics—migrating from SkyWalking, setting up a Gradle project, using ByteBuddy to instrument methods with advice, registering gauge metrics, packaging the jar, handling common class‑loader pitfalls, and configuring deployment via the OpenTelemetry operator.

InstrumentationJavaJavaAgent
0 likes · 14 min read
Developing an OpenTelemetry Extension for Pulsar Java Client Metrics
政采云技术
政采云技术
Dec 26, 2023 · Backend Development

Understanding Java Bytecode and Using ASM for Bytecode Manipulation

This article explains how Java achieves "write once, run anywhere" through platform‑independent bytecode, describes the .class file structure, introduces tools for viewing bytecode, and provides detailed guidance on using the ASM library’s Core and Tree APIs for bytecode enhancement, including practical code demos and application scenarios.

ASMBytecodeBytecode Manipulation
0 likes · 16 min read
Understanding Java Bytecode and Using ASM for Bytecode Manipulation
DeWu Technology
DeWu Technology
Dec 13, 2023 · Mobile Development

Dart AOP‑Based Full Instrumentation for Flutter Applications

By inserting a custom AopTransformer into Flutter’s front‑end compilation pipeline before optimization, the proposed Dart AOP solution automatically injects logging hooks that capture full‑stack user interaction paths and business state without modifying business code, delivering zero‑impact, maintainable instrumentation for improved debugging and app stability.

AOPCode GenerationDart
0 likes · 18 min read
Dart AOP‑Based Full Instrumentation for Flutter Applications
DeWu Technology
DeWu Technology
Sep 11, 2023 · Backend Development

Bytecode Enhancement for Method Call Interception and Performance Monitoring

The article introduces a lightweight bytecode‑enhancement framework that weaves interceptors directly into Java methods to record execution times and call hierarchies, avoiding proxy overhead, supporting synchronous, asynchronous and lambda scenarios, and enabling precise performance monitoring and tracing across micro‑service architectures.

AOPBytecodeInstrumentation
0 likes · 24 min read
Bytecode Enhancement for Method Call Interception and Performance Monitoring
Architect's Tech Stack
Architect's Tech Stack
Aug 12, 2023 · Backend Development

Understanding Java Object Behavior, Method Area, and Dynamic Tracing with Instrumentation, BTrace, and Arthas

This article explains how Java objects store attributes and shared behavior, describes the JVM method area where method bytecode resides, and demonstrates runtime bytecode manipulation using java.lang.instrument.Instrumentation, BTrace scripts, and the Arthas diagnostic tool to solve real‑world debugging problems.

ArthasBTraceBytecode
0 likes · 15 min read
Understanding Java Object Behavior, Method Area, and Dynamic Tracing with Instrumentation, BTrace, and Arthas
Code Ape Tech Column
Code Ape Tech Column
Jul 10, 2023 · Operations

Fixing SkyWalking ThreadPool Plugin Enhancement Failure by Making AgentClassLoader a Singleton

This article details the investigation of a SkyWalking thread‑pool plugin enhancement failure caused by multiple AgentClassLoader instances, explains the debugging steps, class‑loading behavior, and provides two practical solutions to ensure proper bytecode instrumentation for ThreadPoolExecutor in Java applications.

APMAgentClassLoaderInstrumentation
0 likes · 16 min read
Fixing SkyWalking ThreadPool Plugin Enhancement Failure by Making AgentClassLoader a Singleton
Architect's Guide
Architect's Guide
Jul 4, 2023 · Backend Development

Using Java Agent and Instrumentation for Non‑Intrusive Method Timing and Tracing

This article explains how to replace invasive manual timing code with a lightweight Java Agent that leverages the java.lang.instrument API, ASM bytecode manipulation, and the Attach API to measure method execution time, perform dynamic class redefinition, and integrate with tools like Arthas for runtime tracing.

ASMArthasAttach API
0 likes · 22 min read
Using Java Agent and Instrumentation for Non‑Intrusive Method Timing and Tracing