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-otel-plugin

v0.1.3

Published

Appium plugin to export Appium server metrics and traces using OpenTelemetry

Downloads

81

Readme

appium-otel-plugin

Appium plugin to export Appium server metrics and traces using OpenTelemetry.

Run

# install plugin
appium plugin install --source=npm appium-otel-plugin

# run appium with the plugin
export OTEL_SERVICE_NAME=appium
appium server --use-plugins=appium-otel-plugin

Tracing

This plugin has 2 modes for exporting traces, which can be switched with the environment variable APPIUM_OTEL_TRACE_SEMANTIC.

HTTP Semantic Tracing (by default)

The plugin hooks and exports incoming http requests and outgoing http requests in the Appium server. It can act as distributed tracing if you enabled OpenTelemetry http instruments in your appium client.

Command Semantic Tracing

The plugin hooks an Appium command and sends a command executino as a span. It also starts a parent span at the start of Appium session and links the commands associated with the session as child spans.

Metrics

The plugin collects the following metrics:

| Name | Type | Desciption | | -------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------- | | appium.command.responses | Counter | Incremented each time one command is completed. Collected with a status attribute indicating whether the command is successful or not. | | appium.sessions.total | Gauge | Number of active sessions. | | appium.sessions.oldest_age | Gauge | Age (in seconds) of the oldest active session. |

Configuration

You can configure the plugin with environment variables.

| Env | Default | Desciption | | ------------------------------------------ | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | APPIUM_OTEL_TRACE_ENABLED | true | Enable tracing if true. | | APPIUM_OTEL_METRICS_ENABLED | true | Enable metrics if true. | | APPIUM_OTEL_TRACE_SEMANTIC | http | Specify the tracing mode. One of the following http, command. | | APPIUM_OTEL_TRACE_EXPORTER | otlp | One of available trace exporter. The followings are supported: otlp zipkin console | | APPIUM_OTEL_ATTRIBUTES_IN_CAPS | platformName | If the keys specified by this exist in the capabilities, they are sent as attributes if the metrics/span is associated with a session. e.g. platformName,app,udid | | APPIUM_OTEL_METRICS_EXPORTER | otlp | One of available trace exporter. The followings are supported: otlp console | | APPIUM_OTEL_METRICS_EXPORT_INTERVAL_MILLIS | 10000 | Some metrics are collected periodically. You can change the collection period with this value. | | DEBUG | false | Set loglevel of opentelemetry API to DEBUG. | | APPIUM_OTEL_AUTO_DETECT_RESOURCES | true | Toggle whether to enable auto detect resources. | | APPIUM_OTEL_ATTRIBUTES | | Attributes to be added to the metrics/spans. e.g. env=development,region=us-east-1 |

In addition to them, you would be able to use OpenTelemetry environment variables like OTEL_SERVICE_NAME when APPIUM_OTEL_AUTO_DETECT_RESOURCES is true.

Logs

This plugin doesn't support exporting logs. If you are a Datadog user and interested in exporting logs, you might be interested in appium-ddlog-plugin.