Initialize datadog library

    0

    1

    Datadog library

    Datadog requires two parameters when initializing the SDK - an API key and an app key. The SDK uses these keys to authenticate with Datadog.

    from datadog import initialize as datadog_initialize
    
    datadog_options = {
      'api_key': apikey,
      'app_key': appkey
    }
    
    datadog_initialize(**options)
    stats = ThreadStats() # object to collect all statistics
    stats.start()
    stats.increment("metric_name", 1)
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.