skyapm-nodejs-cass
Version:
The Node server instrument SDK for Apache SkyWalking
65 lines (56 loc) • 2.43 kB
JavaScript
// GENERATED CODE -- DO NOT EDIT!
// Original file comments:
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
//
;
var grpc = require('grpc')
var language$agent$v2_trace_pb = require('../language-agent-v2/trace_pb.js');
var common_common_pb = require('../common/common_pb.js');
var common_trace$common_pb = require('../common/trace-common_pb.js');
function serialize_Commands(arg) {
if (!(arg instanceof common_common_pb.Commands)) {
throw new Error('Expected argument of type Commands');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_Commands(buffer_arg) {
return common_common_pb.Commands.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_UpstreamSegment(arg) {
if (!(arg instanceof common_trace$common_pb.UpstreamSegment)) {
throw new Error('Expected argument of type UpstreamSegment');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_UpstreamSegment(buffer_arg) {
return common_trace$common_pb.UpstreamSegment.deserializeBinary(new Uint8Array(buffer_arg));
}
var TraceSegmentReportServiceService = exports.TraceSegmentReportServiceService = {
collect: {
path: '/TraceSegmentReportService/collect',
requestStream: true,
responseStream: false,
requestType: common_trace$common_pb.UpstreamSegment,
responseType: common_common_pb.Commands,
requestSerialize: serialize_UpstreamSegment,
requestDeserialize: deserialize_UpstreamSegment,
responseSerialize: serialize_Commands,
responseDeserialize: deserialize_Commands,
},
};
exports.TraceSegmentReportServiceClient = grpc.makeGenericClientConstructor(TraceSegmentReportServiceService);