Skip to content

fix: start post_processor span before the factory call - #10

Open
raydive wants to merge 1 commit into
masterfrom
fix/post-processor-span-before-factory
Open

raydive wants to merge 1 commit into
masterfrom
fix/post-processor-span-before-factory

Conversation

@raydive

@raydive raydive commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator

PostProcessorManager で、PostProcessor ごとの span markdown.parse.post_processor を factory の apply の後ではなく前に開始するよう変更しました。

これにより、PostProcessorFactory の apply(PostProcessor の生成)にかかる時間が、親の post_process ではなく該当 PostProcessor の post_processor span に載るようになります。

Work done inside PostProcessorFactory.apply(...) (e.g. building matching
patterns from external data) was attributed only to the enclosing
markdown.parse.post_process span. Start the markdown.parse.post_processor
span before the factory call and set markdown.post_processor.class once
the instance exists, so the per-processor breakdown is complete.

Add opentelemetry-sdk-testing (test scope) and a test asserting that the
factory is applied inside its span.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@raydive
raydive requested review from corgimkii and uonoko1 October 22, 2026 00:16
@raydive raydive assigned gamisachi and unassigned gamisachi Oct 22, 2026
@raydive
raydive requested a review from gamisachi October 22, 2026 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants