npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

appium-ddlog-plugin

v0.1.4

Published

Appium plugin to stream command results to Datadog Log without Datadog Agent

Downloads

362

Readme

appium-ddlog-plugin

Appium plugin to stream command result logs to Datadog without Datadog Agent.

Command Logs

The plugin sends two logs per a command, one at the start of the command execution and at its completion. The former contains information about the arguments of the command and the latter contains the result of the command. Logs can contain information such as command name, session ID, command name, and capacities as tags as well.

Appium Logs (disabled by default)

If you set EXPORT_APPLICATION_LOGS=true, the plugin sends all logs of Appium to Datadog. However, these logs cannot include session id or capabilities information as tags.

Run

# install plubin
appium plugin install --source=npm appium-ddlog-plugin

# run appium with the plugin
export DD_API_KEY="Put your API key here"
appium server --use-plugins=appium-ddlog-plugin

Configuration

You can configure the plugin with environment variables.

| Env | Default | Desciption | | -------------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------- | | DD_API_KEY | | Datadog API key. This is required. | | DD_LOG_HOST | http-intake.logs.datadoghq.com | Datadog Logs API endpoint. | | DD_LOG_LEVEL | info | Log level. | | DD_TAGS | | Tags to be added to the log. e.g. env:development,region:us-east-1 | | DD_SERVICE | appium | Service name sent with log. | | DD_HOSTNAME | os.hostname() | Host name sent with log. | | DD_SOURCE | nodejs | Source name sent with log. | | DD_BATCH_INTERVAL | 5000 | The number of milliseconds to wait before sending the HTTP request to Datadog. | | DD_BATCH_COUNT | 30 | The number of logs to cumulate before sending the HTTP request to Datadog. | | EXPORT_COMMAND_LOGS | true | Whether to send command execution logs. | | EXPORT_APPLICATION_LOGS | false | If true, the plugin hooks the logger used by Appium and sends all logs Datadog. | | DD_CAP_TAGS | | If the keys specified by DD_CAP_TAGS exist in the capabilities, they are sent as tags. e.g. platformName,app,udid | | DD_CAP_TAG_PREFIX | | Prefix for tags specified by DD_CAP_TAGS. | | DD_CAP_MESSAGES | | If the keys specified by DD_CAP_MESSAGES exist in the capabilities, they are sent as fields in a log. | | DD_CAP_MESSAGE_PREFIX | | Prefix for field names specified by DD_CAP_MESSAGES. | | SHOW_SESSION_ID_IN_MESSAGE | false | Whether to include session id in a log message. |