Skip to main content

mlp_tracking

Project description

REQUIREMENTS

pip install mlp_tracking

USAGE EXAMPLE

from mlp_tracking import MlpTracker, PipeType, IssueModule
import os


# initialize 
tracker = MlpTracker(
    pipe_type=PipeType.FAQ_PREDIC_PIPE.value,
    issue_module=IssueModule.ML.value,
    # you may get kafka_servers from environments
    kafka_servers=os.environ.get('KAFKA_SERVERS', ''),
    kafka_username=os.environ.get('KAFKA_USERNAME', ''),
    kafka_password=os.environ.get('KAFKA_PASSWORD', ''),
)


# send event
tracker.send(
    message='predict error',
    reason='model not found',
)

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

mlp_tracking-0.0.3.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

mlp_tracking-0.0.3-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

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