Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@supertenant/metrics-util / src / nodejs / NodeJsProcessor.js
Size: Mime:
// (c) Copyright 2023 Supertenant Ltd. - all rights reserved.
// See LICENSE file in project root for license terms.
"use strict";const DataProcessor=require("../DataProcessor"),CoreDataSource=require("./CoreDataSource");class NodeJsProcessor extends DataProcessor{constructor(coreAndShared,pid){super("com.instana.plugin.nodejs"),this.pid=pid,this.addSource("core",new CoreDataSource(coreAndShared))}getEntityId(){return this.pid}processData(rawDataPerSource){return{...rawDataPerSource.core,pid:this.pid}}}module.exports=exports=NodeJsProcessor;