Skip to main content

Echo sender driver for Fustor

Project description

fustor-sender-echo

This package provides an "echo" sender driver for the Fustor Agent service. It serves as a basic example and debugging tool for SenderDriver implementations. Instead of sending data to an external system, it simply logs all received events and control flags to the Fustor Agent's log output.

Features

  • Echo Functionality: Logs all incoming events, including realtime and snapshot data, to the console/log.
  • Control Flag Visibility: Displays control flags like is_snapshot_end and snapshot_sync_suggested for debugging data flow.
  • Session Management: Implements create_session and heartbeat to demonstrate session lifecycle.
  • No Configuration Needed: The get_needed_fields method returns an empty schema, indicating it accepts all fields without specific requirements.
  • Wizard Definition: Provides a simple wizard step for UI integration.

Installation

This package is part of the Fustor monorepo and is typically installed in editable mode within the monorepo's development environment using uv sync. It is registered as a fustor_agent.drivers.senders entry point.

Usage

To use the fustor-sender-echo driver, configure a Sender in your Fustor Agent setup with the driver type echo. When a pipe involves this sender, all data processed by the Agent will be logged by this driver.

This driver is particularly useful for:

  • Debugging: Understanding the exact data and control signals being sent by the Fustor Agent.
  • Development: As a template for creating new SenderDriver implementations.
  • Testing: Verifying that the Fustor Agent's data pipe is correctly delivering events.

Example (conceptual configuration in Fustor Agent):

# Fustor 主目录下的 agent-config.yaml
senders:
  my-echo-sender:
    driver_type: echo
    # No specific configuration parameters needed for the echo driver

Dependencies

  • fustor-core: Provides the SenderDriver abstract base class and other core components.
  • fustor-event-model: Provides EventBase for event data structures.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fustor_sender_echo-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fustor_sender_echo-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file fustor_sender_echo-0.1.0.tar.gz.

File metadata

  • Download URL: fustor_sender_echo-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for fustor_sender_echo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f853dd59a5b49e8fae11e60f74a62ca911cdb99eae366c873deab4f6901ca481
MD5 d197d2848df63bd5e374211c59d1c004
BLAKE2b-256 3c9663dab1f3b372d44caeae7e5b522b17c04c07bcbc917c22d657cd1a10cabb

See more details on using hashes here.

File details

Details for the file fustor_sender_echo-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fustor_sender_echo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab812a9eade8bddb6f58877ba0997d28f992a15bc4c430b9893a51ed5302bd03
MD5 7a0b3fc9f1bb2977a73b10b235b29ac0
BLAKE2b-256 6b39f324d3f73dcfb516dfed2edb28db0055cb8cb8088ef1eda3c40220f1e097

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page