<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>myatsdqn</author_name>
  <author_url>https://blog.hatena.ne.jp/myatsdqn/</author_url>
  <blog_title>MNTSQ Techブログ</blog_title>
  <blog_url>https://tech.mntsq.co.jp/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>Webアプリケーションやバッチジョブを運用していくにあたって、エラーの影響範囲の調査のため、APIへのアクセスIDやバッチのジョブIDのついたログは欠かせないです。 このような類のIDをログとして残す場合には、そのIDの影響下にある全部の処理に対して該当のIDを渡したいです。 この類の処理をフルスクラッチで書こうとする場合、下記事項を考慮する必要があります。 ログのために既存のコードの引数を変えることはしたくないため、IDをロガー経由で渡す必要がある IDを渡されるロガーは処理の間はIDを保持してほしい、それ故ロガーはシングルトンインスタンスか、それに相当するモジュールになる asyncの入っ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.mntsq.co.jp%2Fentry%2F2021%2F05%2F26%2F160249&quot; title=&quot;structlogを用いた構造化ログの導入 - MNTSQ Techブログ&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>https://www.structlog.org/en/stable/_static/structlog_logo_small_transparent.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-05-26 16:02:49</published>
  <title>structlogを用いた構造化ログの導入</title>
  <type>rich</type>
  <url>https://tech.mntsq.co.jp/entry/2021/05/26/160249</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
