@@ -93,16 +93,16 @@ See [references/plugin-architecture.md](references/plugin-architecture.md) for c
9393Answer these questions by reading the code:
9494
95951 . ** Does the package make direct HTTP calls to LLM provider endpoints?**
96- - YES → Go to question 2
97- - NO → Go to question 3
96+ - YES → Go to question 2
97+ - NO → Go to question 3
9898
99992 . ** Does it support multiple LLM providers via configuration?**
100- - YES → ** ` LlmObsCategory.MULTI_PROVIDER ` **
101- - NO → ** ` LlmObsCategory.LLM_CLIENT ` **
100+ - YES → ** ` LlmObsCategory.MULTI_PROVIDER ` **
101+ - NO → ** ` LlmObsCategory.LLM_CLIENT ` **
102102
1031033 . ** Does it implement workflow/graph orchestration with state management?**
104- - YES → ** ` LlmObsCategory.ORCHESTRATION ` **
105- - NO → ** ` LlmObsCategory.INFRASTRUCTURE ` **
104+ - YES → ** ` LlmObsCategory.ORCHESTRATION ` **
105+ - NO → ** ` LlmObsCategory.INFRASTRUCTURE ` **
106106
107107See [ references/category-detection.md] ( references/category-detection.md ) for detailed heuristics and examples.
108108
@@ -138,31 +138,31 @@ See [references/message-extraction.md](references/message-extraction.md) for pro
138138## Implementation Steps
139139
1401401 . ** Detect package category** (REQUIRED FIRST STEP)
141- - Follow decision tree above
142- - Output: category, confidence, reasoning
141+ - Follow decision tree above
142+ - Output: category, confidence, reasoning
143143
1441442 . ** Create plugin file**
145- - Location: ` packages/dd-trace/src/llmobs/plugins/{integration}/index.js `
146- - Extend: ` LLMObsPlugin ` base class
147- - Implement: Required methods per plugin architecture
145+ - Location: ` packages/dd-trace/src/llmobs/plugins/{integration}/index.js `
146+ - Extend: ` LLMObsPlugin ` base class
147+ - Implement: Required methods per plugin architecture
148148
1491493 . ** Implement ` getLLMObsSpanRegisterOptions(ctx) ` **
150- - Extract model provider and name from context
151- - Determine span kind (usually ` 'llm' ` )
152- - Return registration options object
150+ - Extract model provider and name from context
151+ - Determine span kind (usually ` 'llm' ` )
152+ - Return registration options object
153153
1541544 . ** Implement ` setLLMObsTags(ctx) ` **
155- - Extract input messages from ` ctx.arguments `
156- - Extract output messages from ` ctx.result `
157- - Extract token metrics (input_tokens, output_tokens, total_tokens)
158- - Extract metadata (temperature, max_tokens, etc.)
159- - Tag span using ` this._tagger ` methods
155+ - Extract input messages from ` ctx.arguments `
156+ - Extract output messages from ` ctx.result `
157+ - Extract token metrics (input_tokens, output_tokens, total_tokens)
158+ - Extract metadata (temperature, max_tokens, etc.)
159+ - Tag span using ` this._tagger ` methods
160160
1611615 . ** Handle edge cases**
162- - Streaming responses (if applicable)
163- - Error cases (empty output messages)
164- - Non-standard message formats
165- - Missing metadata
162+ - Streaming responses (if applicable)
163+ - Error cases (empty output messages)
164+ - Non-standard message formats
165+ - Missing metadata
166166
167167See [ references/plugin-architecture.md] ( references/plugin-architecture.md ) for step-by-step implementation guide.
168168
0 commit comments