mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-16 08:25:18 +02:00
feat: add gmail integration for searching and reply to emails (#34)
* Add gmail integration for google verification * Fix npm run build
This commit is contained in:
parent
b9d1720d94
commit
6503d806c5
4 changed files with 407 additions and 5 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import base64
|
||||
import os
|
||||
|
||||
from loguru import logger
|
||||
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
|
||||
|
||||
from api.constants import ENABLE_TRACING
|
||||
|
|
@ -23,7 +24,7 @@ def setup_pipeline_tracing():
|
|||
langfuse_secret_key = os.environ.get("LANGFUSE_SECRET_KEY")
|
||||
|
||||
if not all([langfuse_host, langfuse_public_key, langfuse_secret_key]):
|
||||
print(
|
||||
logger.warning(
|
||||
"Warning: ENABLE_TRACING is true but Langfuse credentials are not configured. Tracing disabled."
|
||||
)
|
||||
return
|
||||
|
|
@ -39,6 +40,3 @@ def setup_pipeline_tracing():
|
|||
|
||||
otlp_exporter = OTLPSpanExporter()
|
||||
setup_tracing(service_name="dograh-pipeline", exporter=otlp_exporter)
|
||||
print("Langfuse tracing enabled")
|
||||
else:
|
||||
print("Tracing disabled (ENABLE_TRACING=false)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue