For any tracing, you can simply use the generic Epsagon wrapper using the following example:

import epsagon
epsagon.init(
    token='epsagon-token',
    app_name='app-name-stage',
    metadata_only=False,
)

# Wrap your entry point:
@epsagon.python_wrapper(name='my-resource')
def main(params):
    # Your code is here

It is recommended to use a unique name that describes the traced resource. It will be used to identify the resource in the generated service map, filter traces, and more (defaults to the function name if not set).


Did this page help you?