Socket
Socket
Sign inDemoInstall

@web3api/tracing-js

Package Overview
Dependencies
11
Maintainers
2
Versions
64
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3api/tracing-js


Version published
Weekly downloads
18
increased by800%
Maintainers
2
Created
Weekly downloads
 

Changelog

Source

Web3API 0.0.1-prealpha.60

Breaking Changes

  • @web3api/schema-compose: ComposerOptions property schemas is now of type Record<SchemaKind, SchemaFile> and not Record<string, SchemaFile>.
  • @web3api/schema-bind: TargetLanguage type has been renamed to BindLanguage.
  • @web3api/schema-bind: BindOptions property language has been renamed to bindLanguage.

Bugs

  • @web3api/cli: Properly resolve NPM dependency colors due to it being corrupted.
  • @web3api/cli: Plugin schema codegen now properly represents imports types from both Query and Mutation modules.
  • @web3api/cli: Properly defined the separation of the ManifestLanguage and BindLanguage (ex: wasm/assemblyscript -> wasm-as).
  • @web3api/schema-compose: Introduce the concept of a SchemaKind to help determine how schemas should be combined.
  • @web3api/schema-compose: Allow plugins to import mutations within their schemas.
  • @web3api/schema-bind: Introduced the concept of BindTarget to represent a list of known-good bind targets (wasm-as, plugin-ts, etc).

Readme

Source

Tracing

Steps to use tracing
  1. Run the zipkin client using docker

    docker run -d -p 9411:9411 openzipkin/zipkin
    
  2. Enable tracing when creating the Web3ApiClient

    const client = new Web3ApiClient({
      ...,
      tracingEnabled: true
    })
    

    Or you can turn on tracing while running the Web3ApiClient by calling the tracingEnabled method of Web3ApiClient.

    // Turn tracing off
    client.tracingEnabled(false);
    
  3. Once you run the dapp and started producing logs, go to zipkin client which is running on http://localhost:9411. There you can click RUN QUERY button without any filters to show all the logs.

FAQs

Last updated on 10 Jan 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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc