<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>KGA</author_name>
  <author_url>https://blog.hatena.ne.jp/KGA/</author_url>
  <blog_title>口から出まかせ</blog_title>
  <blog_url>https://blog.kga.gg/</blog_url>
  <categories>
  </categories>
  <description>トレースの計装をしている時に頻出の話題として、ヘルスチェックのエンドポイントなど不要なスパンをいかに落とすかという問題がある。今回は Java Agent を使用してゼロコード計装をしている場合に、Java 標準の SPI （Service Provider Interface）を使って特定のスパンを除外する方法を試してみた。 Java 17、OpenTelemetry Java Agent 2.25.0 で動作確認しています。 アプリケーションの構成 Spring Boot アプリケーションに加えて、OpenTelemetry Java Agent に独自の処理を注入するためのプロジェクトを…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kga.gg%2Fentry%2F2026%2F02%2F19%2F223302&quot; title=&quot;Java の SPI を活用して OpenTelemetry Java Agent に独自のフィルタリング処理を組み込む - 口から出まかせ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-02-19 22:33:02</published>
  <title>Java の SPI を活用して OpenTelemetry Java Agent に独自のフィルタリング処理を組み込む</title>
  <type>rich</type>
  <url>https://blog.kga.gg/entry/2026/02/19/223302</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
