Skip to content

Commit

Permalink
organize
Browse files Browse the repository at this point in the history
simplify

revert testing changes
  • Loading branch information
zzstoatzz committed Dec 23, 2024
1 parent 8ccb065 commit 5d486b6
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 18 deletions.
4 changes: 1 addition & 3 deletions load_testing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ requirements:
### start the local telemetry stack

```bash
cd local-telemetry
docker compose up -d
cd ..
./load_testing/local-telemetry/start
```

### run the server with tracing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ will be running:
* Jaeger is a frontend for viewing traces, and will be available at http://localhost:16686
* Prometheus captures metrics, and exposes a frontend at http://localhost:9090

Then, run your local server with:

```bash
$ opentelemetry-instrument prefect server start
```
Then, run your local server according to the instructions in the [load_testing/README.md](../load_testing/README.md) file.

When making requests against your local server, you'll see trace appearing in the
Jaeger frontend at `http://localhost:16686`.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 2 additions & 10 deletions src/prefect/main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
from opentelemetry.instrumentation.fastapi import FastAPIInstrumentor
from opentelemetry.instrumentation.sqlalchemy import SQLAlchemyInstrumentor

instrumentor = FastAPIInstrumentor()
instrumentor.instrument()
SQLAlchemyInstrumentor().instrument()


# Import user-facing API
from typing import Any

Expand Down Expand Up @@ -57,9 +49,9 @@
)

# Configure telemetry
# import prefect.telemetry.bootstrap
import prefect.telemetry.bootstrap

# prefect.telemetry.bootstrap.setup_telemetry()
prefect.telemetry.bootstrap.setup_telemetry()


from prefect._internal.compatibility.deprecated import (
Expand Down

0 comments on commit 5d486b6

Please sign in to comment.