You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/sips/017-configuring-and-emitting-observability.md
+17-19Lines changed: 17 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,34 +31,32 @@ This proposal assumes that all observability data produced should be OTEL compli
31
31
32
32
### Configuring observability
33
33
34
-
The developer must be able to configure the endpoints of OTLP compliant collectors where traces and metrics can be sent. This can be expressed in the `spin.toml` manifest.
34
+
The developer must be able to configure the endpoints of OTLP compliant collectors where traces and metrics can be sent. This can be expressed in the `runtime-config.toml`.
protocol = "http/protobuf"# "grpc" or "http/protobuf" or "http/json" and it defaults to "http/protobuf"
40
+
[observability.metrics]
41
+
endpoint = "http://localhost:4317"
42
+
protocol = "http/protobuf"# "grpc" or "http/protobuf" or "http/json" and it defaults to "http/protobuf"
40
43
```
41
44
42
-
**INPUT NEEDED:**How do we want to configure these endpoints? Where do they belong in the manifest? Do we want to allow for separate endpoints for traces and metrics? Do we want to allow for choosing between gRPC and HTTP? Should we let them pass a flag to `spin` to override the manifest value?
The developer must be able to opt in or out of trace context propagation. This should be possible on a per component basis. By default trace context propagation is disabled for a component. This can be expressed in the `spin.toml` manifest.
47
+
The developer must be able to configure how each component of their application handles tracing. This can be expressed in the `spin.toml` manifest.
45
48
46
49
```toml
47
-
[component.my-component]
48
-
allow_trace_context_propagation = true
50
+
[component.my-component.tracing]
51
+
context_propagation = true# This is all or nothing. If you disable propagation no context will be propagated. By default this is false.
52
+
# Opportunity to add fields in the future to
53
+
# - Disable tracing for performance reasons
54
+
# - Customize span names
55
+
# - Add additional metadata
56
+
# - More complex allow-listing mechanism for what spans propagate
57
+
# - etc.
49
58
```
50
59
51
-
**INPUT NEEDED:** Is it correct to put this on the component config as opposed to the trigger config?
52
-
53
-
Improving the guest observability of Spin with WASI Observe is outside the scope of this SIP. But, it is worth noting that when we add guest observability we may want to move from a simple binary model of trace context propagation to an allow-list based system.
0 commit comments