[Obs AI Assistant] Forward telemetryMetadata.pluginId to the EIS use case header#214285
Conversation
|
Pinging @elastic/obs-ai-assistant (Team:Obs AI Assistant) |
| tools, | ||
| functionCalling: (simulateFunctionCalling ? 'simulated' : 'auto') as FunctionCallingMode, | ||
| metadata: { | ||
| connectorTelemetry: { |
There was a problem hiding this comment.
the field is called telemetryMetadata, and should exist at the subActionParams level of the execute request. For example:
subActionParams: {
telemetryMetadata: {
pluginId: 'observability_ai_assistant'
}
}
I've not used the inferenceClient.chatComplete, but you'll want to make sure this data is at the subActionParams level of wherever the connector call is being made
There was a problem hiding this comment.
Hey @stephmilovic
The Inference ChatComplete API has metadata:
And that has connectorTelemetry -
And in the inference adapter, it gets passed as subActionParams to telemetryMetadata:
💚 Build Succeeded
Metrics [docs]
History
cc @viduni94 |
|
Starting backport for target branches: 8.18, 8.x, 9.0 https://github.com/elastic/kibana/actions/runs/13843052148 |
…e case header (elastic#214285) ## Summary Closes elastic/obs-ai-team#217 This PR forwards the Obs AI Assistant use case header for EIS through the existing `telemetryData` property. Relates to elastic/search-team#9424 The header is implemented in this PR - elastic#214269 ### Checklist - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit d66e0b2)
…e case header (elastic#214285) ## Summary Closes elastic/obs-ai-team#217 This PR forwards the Obs AI Assistant use case header for EIS through the existing `telemetryData` property. Relates to elastic/search-team#9424 The header is implemented in this PR - elastic#214269 ### Checklist - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit d66e0b2)
…e case header (elastic#214285) ## Summary Closes elastic/obs-ai-team#217 This PR forwards the Obs AI Assistant use case header for EIS through the existing `telemetryData` property. Relates to elastic/search-team#9424 The header is implemented in this PR - elastic#214269 ### Checklist - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit d66e0b2)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…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)](#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//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//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//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>
… EIS use case header (#214285) (#214479) # Backport This will backport the following commits from `main` to `8.18`: - [[Obs AI Assistant] Forward `telemetryMetadata.pluginId` to the EIS use case header (#214285)](#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//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//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//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>
…EIS use case header (#214285) (#214480) # Backport This will backport the following commits from `main` to `8.x`: - [[Obs AI Assistant] Forward `telemetryMetadata.pluginId` to the EIS use case header (#214285)](#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//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//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//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>
…e case header (elastic#214285) ## Summary Closes elastic/obs-ai-team#217 This PR forwards the Obs AI Assistant use case header for EIS through the existing `telemetryData` property. Relates to elastic/search-team#9424 The header is implemented in this PR - elastic#214269 ### Checklist - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
Summary
Closes https://github.com/elastic/obs-ai-assistant-team/issues/217
This PR forwards the Obs AI Assistant use case header for EIS through the existing
telemetryDataproperty.Relates to https://github.com/elastic/search-team/issues/9424
The header is implemented in this PR - #214269
Checklist
release_note:*label is applied per the guidelines