Closed radu-stefan-dt closed 4 months ago
The existing log message already did what I wanted, however the self.extension_name
part would always be empty since __init__
sets it to ""
and implies that user must set it. I don't understand why, so I made a further change...
I moved name
as a parameter on __init__
. So our template now passes this into the object creation:
def main():
ExtensionImpl(name="%extension_name%").run()
Not sure if you also agree with it?
Proposing a couple of changes I find myself adding to every extension.
Namely, change the
initialize
function from:to
Changes:
dynatrace_extension.sdk.extension
is longer and less relevant than the extension name)