add more transactions to sentry
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
dadb6508b3
commit
f6273afe7b
@ -4,11 +4,12 @@ from xeger import Xeger
|
||||
from flask_restful import Resource
|
||||
from flask import request, current_app
|
||||
import requests
|
||||
from sentry_sdk import start_transaction
|
||||
import pika
|
||||
from db import db
|
||||
from models import SampleMetadata
|
||||
from schemas import SampleSchema, SampleMetadataSchema
|
||||
from config import *
|
||||
import pika
|
||||
|
||||
"""
|
||||
Flask Restful endpoints
|
||||
@ -76,6 +77,7 @@ class SampleResource(Resource):
|
||||
soundfile,
|
||||
soundfile.content_type,
|
||||
{'Content-Length': soundfile.content_length})}).raise_for_status()
|
||||
with start_transaction(op="rabbitmq-send", name="rabbitmq-connect-and-publish"):
|
||||
credentials = pika.PlainCredentials(current_app.config['FLASK_PIKA_PARAMS']['username'],
|
||||
current_app.config['FLASK_PIKA_PARAMS']['password'])
|
||||
connection = pika.BlockingConnection(
|
||||
|
Loading…
Reference in New Issue
Block a user