lightstep-tracer
Version:
> ❗ **This instrumentation is no longer recommended**. Please review [documentation on setting up and configuring the OpenTelemetry Node.js Launcher](https://github.com/lightstep/otel-launcher-node) or [OpenTelemetry JS (Browser)](https://github.com/open-
27 lines (24 loc) • 1.17 kB
JavaScript
;
/* eslint-disable import/extensions */
/* global PLATFORM_BROWSER */
// Hide the differences in how the Thrift compiler generates code for the
// different platforms as well as expose a Platform class to abstract a few
// general differences in the platforms.
if (typeof PLATFORM_BROWSER !== 'undefined' && PLATFORM_BROWSER) {
module.exports = {
Platform: require('./imp/platform/browser/platform_browser.js'),
ThriftTransport: require('./imp/platform/browser/transport_httpthrift.js'),
thrift: require('./imp/platform/browser/thrift.js'),
crouton_thrift: require('./imp/platform/browser/crouton_thrift.js')
};
} else {
module.exports = {
Platform: require('./imp/platform/node/platform_node.js'),
ThriftTransport: require('./imp/platform/node/transport_httpthrift.js'),
// Note: THRIFT-5029 requires us to use a non-standard require
// TODO: remove non-standard require after https://github.com/apache/thrift/pull/1947 merges
thrift: require('thrift/lib/nodejs/lib/thrift'),
crouton_thrift: require('./imp/platform/node/crouton_thrift.js')
};
}
//# sourceMappingURL=platform_abstraction_layer.js.map