Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@anxing131/tracing

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anxing131/tracing

### 已验证的框架 - [x] koa 2+

  • 0.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by133.33%
Maintainers
1
Weekly downloads
 
Created
Source

Node.js Tracing(opentelemetry) Lib

已验证的框架

  • koa 2+

使用示例

const config = {
  config: {
    resource: {
      'service.name': "anxing",
      'service.namespace': "my-namespace"
    }
  },
  spanProcessor: {
    SimpleSpanProcessor: {
      spanExpoter: {
        ConsoleSpanExporter: {}
      }
    },
    BatchSpanProcessor: {
      config: {
        /** The maximum batch size of every export. It must be smaller or equal to
         * maxQueueSize. The default value is 512. */
        maxExportBatchSize: 1,
        /** The delay interval in milliseconds between two consecutive exports.
         *  The default value is 5000ms. */
        scheduledDelayMillis: 500,
        /** How long the export can run before it is cancelled.
         * The default value is 30000ms */
        exportTimeoutMillis: 3000,
        /** The maximum queue size. After the size is reached spans are dropped.
         * The default value is 2048. */
        maxQueueSize: 10,
      },
      spanExpoter: {
        JaegerExporter: {
          host: '47.100.254.204', 
          port: 30371
        }
      }
    }
  },
  instrumentation: ['KoaInstrumentation', 'HttpInstrumentation']
}

const tracer = new Tracer(config)

参考链接

Keywords

FAQs

Package last updated on 13 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc