Azure / Azure/azure-functions-durable-python

Ability to access 'classic' Azure Function Context, so that I can trace against the same operation_Id

Đang mở
#492 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Enhancement fixed-in-v2 P3
Ngôn ngữ chính
Python
Star
157
Fork
70
Merge trung bình
2 ngày 10 giờ
Pull request đã merge (30 ngày)
2

Mô tả

💡 **Feature description**
Currently, I associate my opentelemetry 'dependency' log entries against their parent operation_Id by running the following:
``` python
carrier = {
"traceparent": azf_context.trace_context.Traceparent,
"tracestate": azf_context.trace_context.Tracestate,
}
context = extract(carrier)
```

(as per azure's own docs)

The azure function context is passed in as the final parameter when main() is called by any binding.

While this seems to work for activities, I am unable to find a similar context information from within durable function orchestrations.

Can you help me find out what I'm missing -- or add it?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách so sánh context được truyền vào main() cho các binding với context khả dụng bên trong các orchestration của Durable Functions. Kiểm tra cách trace_context và operation_Id được cung cấp trong mỗi đường dẫn, sau đó xác nhận rằng một orchestration có thể truy cập context Azure Function kiểu cũ hoặc một giá trị tương đương để theo dõi các mục dependency theo cùng operation_Id.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
azure, python
Lĩnh vực
backend, cloud
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
48/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.