-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is still in the very early stages of development
- Loading branch information
1 parent
943ba88
commit d0caa0a
Showing
4 changed files
with
22 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ loguru | |
statsd | ||
requests | ||
pyshorteners | ||
ddtrace |
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
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,17 @@ | ||
from ddtrace import tracer | ||
from ddtrace.profiling import Profiler | ||
|
||
from threatingestor.operators import Operator | ||
|
||
class Plugin(Operator): | ||
""" | ||
Operator for activating DataDog APM | ||
""" | ||
|
||
def __init__(self, hostname=None, port=None, https=False, artifact_types=None, filter_string=None, allowed_sources=None): | ||
""" | ||
DataDog operator | ||
""" | ||
|
||
self.tracer = tracer.configure(hostname=hostname, port=port, https=https) | ||
self.profile = Profiler() |