Skip to content

dynatrace-extensions/dynatrace-openkit-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages