mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[9.0] [Obs AI Assistant] Forward telemetryMetadata.pluginId
to the EIS use case header (#214285) (#214481)
# Backport This will backport the following commits from `main` to `9.0`: - [[Obs AI Assistant] Forward `telemetryMetadata.pluginId` to the EIS use case header (#214285)](https://github.com/elastic/kibana/pull/214285) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Viduni Wickramarachchi","email":"viduni.wickramarachchi@elastic.co"},"sourceCommit":{"committedDate":"2025-03-13T19:29:37Z","message":"[Obs AI Assistant] Forward `telemetryMetadata.pluginId` to the EIS use case header (#214285)\n\n## Summary\n\nCloses https://github.com/elastic/obs-ai-assistant-team/issues/217\n\nThis PR forwards the Obs AI Assistant use case header for EIS through\nthe existing `telemetryData` property.\n\nRelates to https://github.com/elastic/search-team/issues/9424\nThe header is implemented in this PR -\nhttps://github.com/elastic/kibana/pull/214269\n\n### Checklist\n\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"d66e0b25258b0568857bf6a0882e4d40e1f7e771","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Obs AI Assistant","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Obs AI Assistant] Forward `telemetryMetadata.pluginId` to the EIS use case header","number":214285,"url":"https://github.com/elastic/kibana/pull/214285","mergeCommit":{"message":"[Obs AI Assistant] Forward `telemetryMetadata.pluginId` to the EIS use case header (#214285)\n\n## Summary\n\nCloses https://github.com/elastic/obs-ai-assistant-team/issues/217\n\nThis PR forwards the Obs AI Assistant use case header for EIS through\nthe existing `telemetryData` property.\n\nRelates to https://github.com/elastic/search-team/issues/9424\nThe header is implemented in this PR -\nhttps://github.com/elastic/kibana/pull/214269\n\n### Checklist\n\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"d66e0b25258b0568857bf6a0882e4d40e1f7e771"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/214285","number":214285,"mergeCommit":{"message":"[Obs AI Assistant] Forward `telemetryMetadata.pluginId` to the EIS use case header (#214285)\n\n## Summary\n\nCloses https://github.com/elastic/obs-ai-assistant-team/issues/217\n\nThis PR forwards the Obs AI Assistant use case header for EIS through\nthe existing `telemetryData` property.\n\nRelates to https://github.com/elastic/search-team/issues/9424\nThe header is implemented in this PR -\nhttps://github.com/elastic/kibana/pull/214269\n\n### Checklist\n\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"d66e0b25258b0568857bf6a0882e4d40e1f7e771"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Viduni Wickramarachchi <viduni.wickramarachchi@elastic.co>
This commit is contained in:
parent
6c1aa0a4d9
commit
3130f3af28
2 changed files with 20 additions and 0 deletions
|
@ -321,6 +321,11 @@ describe('Observability AI Assistant client', () => {
|
|||
functionCalling: 'auto',
|
||||
toolChoice: undefined,
|
||||
tools: undefined,
|
||||
metadata: {
|
||||
connectorTelemetry: {
|
||||
pluginId: 'observability_ai_assistant',
|
||||
},
|
||||
},
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
@ -838,6 +843,11 @@ describe('Observability AI Assistant client', () => {
|
|||
functionCalling: 'auto',
|
||||
toolChoice: 'auto',
|
||||
tools: expect.any(Object),
|
||||
metadata: {
|
||||
connectorTelemetry: {
|
||||
pluginId: 'observability_ai_assistant',
|
||||
},
|
||||
},
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
@ -987,6 +997,11 @@ describe('Observability AI Assistant client', () => {
|
|||
functionCalling: 'auto',
|
||||
toolChoice: 'auto',
|
||||
tools: expect.any(Object),
|
||||
metadata: {
|
||||
connectorTelemetry: {
|
||||
pluginId: 'observability_ai_assistant',
|
||||
},
|
||||
},
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
|
|
@ -465,6 +465,11 @@ export class ObservabilityAIAssistantClient {
|
|||
toolChoice,
|
||||
tools,
|
||||
functionCalling: (simulateFunctionCalling ? 'simulated' : 'auto') as FunctionCallingMode,
|
||||
metadata: {
|
||||
connectorTelemetry: {
|
||||
pluginId: 'observability_ai_assistant',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
this.dependencies.logger.debug(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue