dis+/node_modules/@google-cloud/pubsub/build/src/opentelemetry-tracing.js
/**
 * Creates a new span with the given properties
 *
 * @param {string} spanName the name for the span
 * @param {Attributes?} attributes an object containing the attributes to be set for the span
 * @param {SpanContext?} parent the context of the parent span to link to the span
 */
Creates a new span with the given properties
@param {string} spanName the name for the span
@param {Attributes?} attributes an object containing the attributes to be set for the span
@param {SpanContext?} parent the context of the parent span to link to the span
Creates a new span with the given properties @param { string } spanName the name for the span @param { Attributes? } attributes an object containing the attributes to be set for the span @param { SpanContext? } parent the context of the parent span to link to the span
function createSpan(spanName, kind, attributes, parent) {
    return libraryTracer.startSpan(spanName, {
        kind,
        attributes: attributes,
    }, parent ? api_1.trace.setSpanContext(api_1.context.active(), parent) : undefined);
}
function createSpan ( spanName , kind , attributes , parent ) { return libraryTracer . startSpan ( spanName , { kind , attributes : attributes , } , parent ? api_1 . trace . setSpanContext ( api_1 . context . active ( ) , parent ) : undefined ) ; }
Creates a new span with the given properties
 @param {string} spanName the name for the span
 @param {Attributes?}
Creates a new span with the given properties @param { string } spanName the name for the span @param { Attributes? }
// set the kind of the span // set the attributes of the span