Skip to content

Latest commit

 

History

80 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynatrace OpenKit Python

‼️ Not supported by Dynatrace, use at your own risk!

This project provides a python implementation of Dynatrace OpenKit

Quickstart

pip install openkit

import time

from openkit import OpenKit


def main():
    beacon_url = "https://my.beacon.url/mbeacon"
    app_id = "my-application-id"
    ok = OpenKit(beacon_url, app_id, 1)

    # Create a session and identify the user
    session = ok.create_session("192.168.15.1")
    session.identify_user("david")

    # Start an action
    action = session.enter_action("test_action")

    # Start and end a web request
    web_request = action.trace_web_request("https://www.google.com")
    time.sleep(1)
    web_request.stop(200)

    # End the session
    session.end()

    time.sleep(5)
    ok.shutdown()


if __name__ == "__main__":
    main()

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages