@siglo/opentelemetry 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -10,7 +10,7 @@ The OpenTelemetry integration creates an end-to-end distributed span hierarchy c
10
10
 
11
11
  ```mermaid
12
12
  flowchart TD
13
- Req["Incoming HTTP / Kafka / SQS Request<br/>(with W3C traceparent)"] -->|extractTraceContext()| WFSpan["Span: workflow:CheckoutPipeline<br/>• siglo.workflow.name = 'CheckoutPipeline'<br/>• siglo.workflow.version = '2.1.0'<br/>• siglo.stack.id = 'stack_9812_01'<br/>• siglo.namespace = 'ecommerce-us'<br/>• siglo.timeout = 30000"]
13
+ Req["Incoming HTTP / Kafka / SQS Request<br/>(with W3C traceparent)"] -->|"extractTraceContext()"| WFSpan["Span: workflow:CheckoutPipeline<br/>• siglo.workflow.name = 'CheckoutPipeline'<br/>• siglo.workflow.version = '2.1.0'<br/>• siglo.stack.id = 'stack_9812_01'<br/>• siglo.namespace = 'ecommerce-us'<br/>• siglo.timeout = 30000"]
14
14
  WFSpan --> Step1["Span: step:validateCart<br/>• siglo.step.name = ...<br/>• siglo.step.attempt = 1<br/>• Status: OK"]
15
15
  WFSpan --> Step2["Span: step:chargeCard<br/>• siglo.step.attempt = 1<br/>• (Failure: recordException)"]
16
16
  Step2 -->|Retry| Step2Retry["Span: step:chargeCard (retry #2)<br/>• siglo.step.attempt = 2<br/>• Status: OK"]
@@ -156,8 +156,7 @@ const chargePayment = Step.create('chargePayment', async (param: any) => {
156
156
  }
157
157
  return { paymentStatus: 'CHARGED', cardLast4: '4242' };
158
158
  })
159
- .retry({ maxRetries: 2, delayMs: 100 })
160
- ;
159
+ .onFail({ maxRetries: 2, delay: 100 });
161
160
 
162
161
  const orderWorkflow = flow(validateOrder, chargePayment);
163
162
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siglo/opentelemetry",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "OpenTelemetry observability integration for Siglo workflows",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",