-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
temp: Datadog dependencies and testing wrappers
Requires: - `pip install ddtrace`
- Loading branch information
Showing
5 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
python /edx/app/edxapp/edx-platform/manage.py lms runserver 0.0.0.0:18000 --settings devstack_docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# https://github.com/edx/edx-arch-experiments/issues/580 | ||
#export DD_TRACE_PYMONGO_ENABLED=false | ||
|
||
# # Enable Datadog's OpenTelemetry exporter | ||
# export DD_TRACE_OTEL_ENABLED=true | ||
|
||
# # Not sure what this does, but if we don't include it we get a startup failure when exporting via OTel: | ||
# # TypeError: Couldn't build proto file into descriptor pool: duplicate file name opentelemetry/proto/common/v1/common.proto | ||
# export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION="python" | ||
|
||
#export DD_TRACE_DEBUG=true | ||
#export DD_TRACE_DEBUG_ENABLE=false | ||
#export DD_TRACE_LOG_FILE_LEVEL=ERROR | ||
#export DD_TRACE_LOG_STREAM_HANDLER=no_thank_you | ||
#export DD_TRACE_LOG_FILE=/var/log/dd.log | ||
|
||
ddtrace-run "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
export NEW_RELIC_CONFIG_FILE=newrelic.ini | ||
newrelic-admin run-program "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
if [[ -z "$DJANGO_SETTINGS_MODULE" ]]; then | ||
echo >&2 "You need to set DJANGO_SETTINGS_MODULE when running otel wrapper." | ||
exit 1 | ||
fi | ||
|
||
export OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true | ||
export OTEL_SERVICE_NAME=tmccormack-local-dev | ||
export OTEL_METRICS_EXPORTER=otlp | ||
export OTEL_TRACES_EXPORTER=otlp | ||
export OTEL_LOGS_EXPORTER=otlp | ||
export OTEL_EXPORTER_OTLP_PROTOCOL=grpc | ||
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317 | ||
|
||
opentelemetry-instrument "$@" | ||
|
||
# opentelemetry-instrument --traces_exporter console --metrics_exporter console --logs_exporter console --service_name tmccormack-local-dev |