pandora-component-sandbox-log-hub-reporter
Pandora.js Component Sandbox Log Hub Reporter
Last updated 6 months ago by guangwong .
MIT · Original npm · Tarball · package.json
$ cnpm install pandora-component-sandbox-log-hub-reporter 
SYNC missed versions from official npm registry.

pandora-component-sandbox-log-hub-reporter

应用使用 Pandora.js 启动,并安装 pandora-component-sandbox-log-hub-reporter

并在应用目录增加如下配置:

exports.components = {
  // 配置使用 LogHub 向 Sandbox 写入数据
  sandboxLogHubReporter: {
    path: 'pandora-component-sandbox-log-hub-reporter'
  },
  // 打开基于 Patch 和 AsyncHooks 自动获取数据
  autoPatching: {
    path: 'pandora-component-auto-patching'
  }
};

exports.sandboxLogHubReporter = {
  // 配置 LogHub 的地址,即 Sandbox 平台的地址
  endpoint: 'http://127.0.0.1:7001/'
};

exports.trace = {
  // 配置链路采样率
  sampling: 10
};

然后运行 pandora start 即可前台启动应用。然后再等一会,如果没有意外,新应用就会出现在 Sandbox 的应用列表上了。

Current Tags

  • 1.0.0                                ...           latest (6 months ago)

1 Versions

  • 1.0.0                                ...           6 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (4)
Dev Dependencies (13)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |