[APM][OTel] Fix: Pass telemetry.sdk* data when loading a dashboard (#214356)

Closes #214328 

## Summary

This PR fixes the issue with loading an otel native dashboard

## Testing
- Run ` node scripts/synthtrace otel_edot_simple_trace.ts`
- ⚠️ As our test data has only a java service there is a small manual
step needed (it will be listed below **^**)
- Open the metrics tab for the service (currently we don't have a
dashboard):


![image](https://github.com/user-attachments/assets/e5f1461c-be6f-4d18-9185-7cb25698764b)


- **^** Go to the `dashboard_catalog.ts` and add mapping for otel native
java case:
  - first: `'otel_native-edot-java',`


![image](https://github.com/user-attachments/assets/a3463f5b-6db9-466e-95fc-3ccd44a4a016)
  - second: 
      ```js   
     case 'otel_native-edot-java': {
      return import(
        /* webpackChunkName: "lazyJavaOtelNativeDashboard" */
        './opentelemetry_java.json'
      );
    }
   ``

-
![image](https://github.com/user-attachments/assets/34c12147-db1e-4494-8ea6-95dffc5975d4)

- Check the same page after refresh

![image](https://github.com/user-attachments/assets/e12b7046-9868-421b-9f9e-df004f82ddfc)
This commit is contained in:
jennypavlova 2025-03-13 16:20:17 +01:00 committed by GitHub
parent 811d7cb4d4
commit ebe7ef6da0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,6 +60,8 @@ export function Metrics() {
return (
<JsonMetricsDashboard
agentName={agentName}
telemetrySdkName={telemetrySdkName}
telemetrySdkLanguage={telemetrySdkLanguage}
runtimeName={runtimeName}
serverlessType={serverlessType}
dataView={dataView}