Skip to content

C# Kernel: Add End-to-End Telemetry #1651

Closed

Description

@evchaki

Leverage ILogger with Azure Monitor (AppInsights) to send custom telemetry for the following:

  1. Ask (disabled by default) – the actual Ask (text) coming into the Kernel from the application (example: “Create an email to my boss with a summarization of this ......” this will be important in Dev and maybe UAT/test environments. But for PII in production it should be disabled

  2. Planner (enabled by default) – this is the planner step (either using one of our planners or if the developer hard coded in a plan
    a. Ideal information to store here: Execution time, Model used for planner, success state (Success / Failed), Plan returned, total tokens used

  3. Steps executed for the returned plan (enabled by default)
    a. Ideal information to store here: Plugin executed, execution time, success state (Success / Failed), Tokens used, Model used, Plan this was run from

  4. Kernel Errors throughout the process
    a. Critical, Failures, Warnings – (enabled by default)
    b. Non-fatal (disabled by default)

### Tasks
- [x] Telemetry for Ask
- [x] Telemetry for Planner
- [x] Telemetry for plan execution
- [x] Telemetry for Kernel errors
- [x] Samples and demos with telemetry usage

Activity

  1. added
    .NET
    kernel
    on Jun 21, 2023
  2. added this to the Sprint 34 milestone on Jun 21, 2023
  3. added
    sk team issue
    on Jun 21, 2023
  4. moved this to Sprint: Planned in Semantic Kernelon Jun 21, 2023
  5. moved this from Sprint: Planned to Sprint: In Progress in Semantic Kernelon Jun 22, 2023
  6. moved this from Sprint: In Progress to Sprint: Planned in Semantic Kernelon Jun 22, 2023
  7. moved this from Sprint: Planned to Sprint: In Progress in Semantic Kernelon Jun 26, 2023
  8. dmytrostruk commented on Jul 8, 2023

    @dmytrostruk
    Member

    Telemetry for Kernel errors will be handled after exception handling issue is closed: #1669

  9. moved this from Sprint: In Progress to Sprint: In Review in Semantic Kernelon Jul 8, 2023
  10. moved this from Sprint: In Review to Sprint: Done in Semantic Kernelon Jul 18, 2023
  11. alexminza commented on Jul 19, 2023

    @alexminza

    LangSmith is a great tool that builds on top of this type of functionality #2070

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

.NETkernelsk team issue

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions