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

@okode/capacitor-dynatrace

v0.0.5

Published

Dynatrace plugin for Capacitor

Downloads

97

Readme

capacitor-dynatrace

Dynatrace plugin for Capacitor

Publish NPM package

Ensure you are athenticated in NPM.js using npm login

npm ci npm run build npm run release

Install

npm install capacitor-dynatrace
npx cap sync

## Android

  • Añade la dependencia del plugin Dynatrace dentro del bloque buildscript en el build.gradle de la carpeta principal del proyecto android de tu aplicación (apps/[project]/android/build.gradle)
buildscript {
    dependencies {
        ...
        classpath 'com.dynatrace.tools.android:gradle-plugin:8.+' // Add this dependency
    }
}
  • Configura el plugin de Dynatrace dentro del build.gradle de la carpeta principal del proyecto android de tu aplicación (apps/[project]/android/build.gradle)
apply plugin: 'com.dynatrace.instrumentation'
dynatrace {
    configurations {
        preproduction {
            variantFilter "[dD]ebug"
            autoStart {
                applicationId '[YOUR_PRE_APPLICATION_ID]'
                beaconUrl '[YOUR_PRE_BEACON_URL]'
            }
            hybridWebView {
                enabled true
                domains '[YOUR_DOMAINS]'
            }
            agentBehavior.startupLoadBalancing true
        }
        production {
            variantFilter "[rR]elease"
            autoStart {
                applicationId '[YOUR_PROD_APPLICATION_ID]'
                beaconUrl '[YOUR_PROD_BEACON_URL]'
            }
            hybridWebView {
                enabled true
                domains '[YOUR_DOMAINS]'
            }
            agentBehavior.startupLoadBalancing true
        }
    }
}
  • applicationId: ID de la aplicación de Dynatrace. Valor suministrado por plataforma.
  • beaconUrl: Beacon URL de Dynatrace. Valor suministrado por plataforma.
  • domains: Listado de nombres de dominio de los servicios de backend a monitorizar. Dynatrace automáticamente monitoriza toda peticion XHR a los servicios de backend desde el webview. Sin embargo, para tener visibilidad end-to-end es necesario especificar los nombres de dominio de los servicios de backend. Ejemplo: '.mapfre.com', '.mapfre.es'

iOS

  • Añade en el Info.plist de la aplicación los siguientes valores:
<key>DTXApplicationID</key>
<string>${DYNATRACE_APPLICATION_ID}</string>
<key>DTXBeaconURL</key>
<string>${DYNATRACE_BEACON_URL}</string>
<key>DTXHybridApplication</key>
<string>true</string>
<key>DTXSetCookiesForDomain</key>
<array>
  <string>[YOUR_DOMAIN]</string>
</array>
<key>DTXStartupLoadBalancing</key>
<true/>
  • DTXApplicationID: ID de la aplicación de Dynatrace. Valor suministrado por plataforma.

  • DYNATRACE_BEACON_URL: Beacon URL de Dynatrace. Valor suministrado por plataforma.

  • DTXSetCookiesForDomain: Listado de nombres de dominio de los servicios de backend a monitorizar. Dynatrace automáticamente monitoriza toda peticion XHR a los servicios de backend desde el webview. Sin embargo, para tener visibilidad end-to-end es necesario especificar los nombres de dominio de los servicios de backend. Ejemplo: <array><string>.mapfre.es</string><string>.mapfre.com</string></array>

  • Configura los valores de Dynatrace por tipo de construcción

    • Accede a Build settings
    • Añade los User-defined setting para:
      • DYNATRACE_APPLICATION_ID
      • DYNATRACE_BEACON_URL

API