Communication bridge between Amazon x-ray sdk and Hapi

0

I've been working as a blockchain company. My manager wants to integrate: Amazon X-Ray. Our solution uses several microservices. Part of them are using: hapi.dev(https://hapi.dev). The others microservices don't have a framework. The system has several microservices with PURE nodejs implementation.

My question about: How we can use Amazon X Ray could be used if the technology stack is mix between hapi.dev services and pure nodejs implementation.

Why I'm asking my question:

The documentation started with the following paraghraph: The X-Ray SDK for Node.js is a library for Express web applications and Node.js Lambda functions that provides classes and methods for generating and sending trace data to the X-Ray daemon. Trace data includes information about incoming HTTP requests served by the application, and calls that the application makes to downstream services using the AWS SDK or HTTP clients.

https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-nodejs.html


I've found as a package: https://www.npmjs.com/package/aws-xray-sdk-hapi

I'd like to ask what's the recommendation by the official contributors ?

질문됨 2년 전226회 조회
1개 답변
0

Hi!

We would recommend using the AWS Distro for OpenTelemetry (ADOT) for instrumenting applications with AWS X-Ray. The OpenTelemetry Javascript SDK contains a wider range of features and supports many library instrumentations (including Hapi) out of the box. To get started, please see the ADOT JS documentation.

AWS
Carol_A
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠