mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-11-20 12:03:38 +00:00
* fix: fix auto-tracing * feat: add context var logging to structlog * docs: add release notes
35 lines
1.0 KiB
Python
35 lines
1.0 KiB
Python
# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
import haystack.logging
|
|
import haystack.tracing
|
|
from haystack.core.component import component
|
|
from haystack.core.errors import ComponentError, DeserializationError
|
|
from haystack.core.pipeline import Pipeline, PredefinedPipeline
|
|
from haystack.core.serialization import default_from_dict, default_to_dict
|
|
from haystack.dataclasses import Answer, Document, ExtractedAnswer, GeneratedAnswer
|
|
|
|
# Initialize the logging configuration
|
|
# This is a no-op unless `structlog` is installed
|
|
haystack.logging.configure_logging()
|
|
|
|
# Same for tracing (no op if `opentelemetry` or `ddtrace` is not installed)
|
|
haystack.tracing.auto_enable_tracing()
|
|
|
|
__all__ = [
|
|
"component",
|
|
"default_from_dict",
|
|
"default_to_dict",
|
|
"DeserializationError",
|
|
"ComponentError",
|
|
"Pipeline",
|
|
"PredefinedPipeline",
|
|
"Document",
|
|
"Answer",
|
|
"GeneratedAnswer",
|
|
"ExtractedAnswer",
|
|
]
|
|
|
|
# FIXME: remove before merging PR
|