I have integrated faro. when i deployed in dev or stg the collect call is going in infinite loop #516
Unanswered
akhilmukkamala-phenom
asked this question in
Q&A
Replies: 1 comment
-
I see you have old versions of Faro and the packages are of different versions as well—current version is 1.4.2. Form the code example it's hard to say why this happens. I would recommend to:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
const faro = initializeFaro({
url:
${window.env.FARO_URL}
,apiKey:
${window.env.REACT_APP_API_KEY}
,instrumentations: [...getWebInstrumentations(), new TracingInstrumentation()],
app: {
name: 'qahub-ui',
},
});
// get OTel trace and context APIs
const { trace, context } = faro.api.getOTEL();
const tracer = trace.getTracer('default');
const span = tracer.startSpan('click');
context.with(trace.setSpan(context.active(), span), () => {
span.end();
});
i added my code in index.tsx file.
and these are versions
"@grafana/faro-web-sdk": "^1.3.7",
"@grafana/faro-web-tracing": "^1.3.6",
Beta Was this translation helpful? Give feedback.
All reactions