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
title: "estimate type"# this title is required to avoid python codegen conflicts with the "type" parameter in AirbyteMessage. See https://github.com/airbytehq/airbyte/pull/12581
220
+
description: The type of estimate
221
+
type: string
222
+
enum:
223
+
- STREAM
224
+
- SYNC
225
+
namespace:
226
+
description: The namespace of the stream
227
+
type: string
228
+
row_estimate:
229
+
description: The estimated number of rows to be emitted by this sync for this stream
230
+
type: integer
231
+
byte_estimate:
232
+
description: The estimated number of bytes to be emitted by this sync for this stream
|`v0.2.0`| 2022-06-10 |[13573](https://github.com/airbytehq/airbyte/pull/13573) & [12586](https://github.com/airbytehq/airbyte/pull/12586)|`STREAM` and `GLOBAL` STATE messages |
@@ -759,7 +760,7 @@ AirbyteLogMessage:
759
760
760
761
### AirbyteTraceMessage
761
762
762
-
The trace message allows an Actor to emit metadata about the runtime of the Actor. As currently implemented, it allows an Actor to surface information about errors. This message is designed to grow to handle other use cases, including progress and performance metrics.
763
+
The trace message allows an Actor to emit metadata about the runtime of the Actor, such as errors or estimates. This message is designed to grow to handle other use cases, including additonal performance metrics.
763
764
764
765
```yaml
765
766
AirbyteTraceMessage:
@@ -775,12 +776,16 @@ AirbyteTraceMessage:
775
776
type: string
776
777
enum:
777
778
- ERROR
779
+
- ESTIMATE
778
780
emitted_at:
779
781
description: "the time in ms that the message was emitted"
780
782
type: number
781
783
error:
782
784
description: "error trace message: the error object"
783
785
"$ref": "#/definitions/AirbyteErrorTraceMessage"
786
+
estimate:
787
+
description: "Estimate trace message: a guess at how much data will be produced in this sync"
description: The estimated number of rows to be emitted by this sync for this stream
831
+
type: integer
832
+
byte_estimate:
833
+
description: The estimated number of bytes to be emitted by this sync for this stream
834
+
type: integer
805
835
```
806
836
837
+
#### AirbyteErrorTraceMessage
838
+
839
+
Error Trace Messages are used when a sync is about to fail and the connector can provide meaningful information to the orhcestrator or user about what to do next.
840
+
841
+
Of note, an `internal_message` might be an exception code, but an `external_message` is meant to be user-facing, e.g. "Your API Key is invalid".
842
+
843
+
Syncs can fail for multiple reasons, and therefore multiple `AirbyteErrorTraceMessage` can be sent from a connector.
844
+
845
+
#### AirbyteEstimateTraceMessage
846
+
847
+
Estimate Trace Messages are used by connectors to inform the orchestrator about how much data they expect to move within the sync. This ise useful to present the user with estimates of the time remaining in the sync, or percentage complete. An example of this would be for every stream about to be synced from a databse to provde a `COUNT (*) from {table_name} where updated_at > {state}` to provide an estimate of the rows to be sent in this sync.
848
+
849
+
`AirbyteEstimateTraceMessage`should be emitted early in the sync to provide an early estimate of the sync's duration. Multiple `AirbyteEstimateTraceMessage`s can be sent for the same stream, and an updated estimate will replace the previous value.
850
+
807
851
### AirbyteControlMessage
808
852
809
853
An `AirbyteControlMessage` is for connectors to signal to the Airbyte Platform or Orchestrator that an action with a side-effect should be taken. This means that the Orchestrator will likely be altering some stored data about the connector, connection, or sync.
0 commit comments