สัญญาณและข้อตกลงเชิงความหมาย
เรียนรู้สัญญาณสามประเภทของ OpenTelemetry วิธีที่สัญญาณเหล่านั้นแบ่งปันทรัพยากรและบริบท และเหตุใดข้อตกลงเชิงความหมายจึงทำให้ข้อมูลวัดระยะไกลใช้ข้ามเครื่องมือได้
สัญญาณและข้อตกลงเชิงความหมาย เป็นบทเรียน System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) ฟรีบน CoddyKit นี่คือบทเรียนที่ 4 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) มีบทเรียนทั้งหมด 4 บทเรียน
บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ
The Three Signals
OpenTelemetry defines three signals of telemetry: traces, metrics, and logs. One specification and SDK produce all three in a consistent way.
Traces
Traces capture the path of a request across services as a tree of spans, answering where time went and what failed.
span: GET /checkout
span: query inventory
span: charge paymentMetrics
Metrics are numeric measurements aggregated over time: counters, gauges, and histograms that answer how much and how often.
http.server.duration histogram
http.server.active_requests gaugeLogs
Logs are timestamped records of discrete events. In OTel they can be correlated with traces by carrying the same trace and span IDs.
{ "body": "order placed", "trace_id": "a9f...c1" }The Resource
A Resource describes the entity producing telemetry, such as a service or host. It is attached to all three signals so they share identity.
resource:
service.name: checkout
service.version: 1.4.0Shared Context
All signals can carry the same context. A log and a metric exemplar can point back to the trace that produced them, enabling correlation.
What Are Semantic Conventions?
Semantic conventions are agreed names for common attributes. Everyone uses http.request.method instead of inventing their own key.
Why Conventions Matter
Standard names let any backend understand your data. Dashboards, alerts, and tools work out of the box because the keys are predictable.
- Portability across vendors
- Reusable dashboards
- Automatic correlation
Common Attribute Examples
Conventions cover HTTP, databases, messaging, and more.
http.request.method = "GET"
http.response.status_code = 200
db.system = "postgresql"Resource vs Span Attributes
Resource attributes describe the producer and rarely change. Span attributes describe a single operation and vary per request.
resource: service.name (static)
span: http.route, user.tier (per request)Signals Together
Combining the three signals with shared resources and conventions gives full observability: metrics show what is wrong, traces show where, and logs show why.
Quick Check
Identify the purpose of semantic conventions.
Recap
You learned the three OTel signals (traces, metrics, logs), how a shared Resource and context tie them together, and how semantic conventions standardize attribute names for portability and correlation across any backend.
เรียนรู้ System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) ด้วย AI tutor — ฟรี
เขียนและเรียกใช้โค้ดจริงในเบราว์เซอร์ของคุณ รับความช่วยเหลือทันทีจาก AI tutor 24/7 และเรียนรู้ต่อจากที่คุณหยุดบนเว็บหรือในแอป
- คอร์ส
- 12
- บทเรียน
- 48
คำถามที่พบบ่อย
บทเรียน “สัญญาณและข้อตกลงเชิงความหมาย” ฟรีหรือไม่
ใช่ — ข้อความเต็มของ “สัญญาณและข้อตกลงเชิงความหมาย” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) ให้อัปเกรดเป็น CoddyKit PRO คอร์ส System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) มีบทเรียนทั้งหมด 4 บทเรียน
คุณจะเรียนรู้อะไรในบทเรียน “สัญญาณและข้อตกลงเชิงความหมาย”
เรียนรู้สัญญาณสามประเภทของ OpenTelemetry วิธีที่สัญญาณเหล่านั้นแบ่งปันทรัพยากรและบริบท และเหตุใดข้อตกลงเชิงความหมายจึงทำให้ข้อมูลวัดระยะไกลใช้ข้ามเครื่องมือได้ คุณปฏิบัติ System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน
คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) หรือไม่
ไม่จำเป็นต้องมีประสบการณ์มาก่อน System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 4 จากทั้งหมด 4 บทเรียน
บทเรียน “สัญญาณและข้อตกลงเชิงความหมาย” ใช้เวลานานแค่ไหน
บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย
ฉันเขียนและรันโค้ดในบทเรียน System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) นี้ได้ไหม
ได้ บทเรียน System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ
บทเรียนทั้งหมดในหลักสูตรนี้
- มาตรฐาน OpenTelemetry
- ตัวรวบรวมและตัวส่งออกของ OTel
- การติดตั้งเครื่องมือในแอปด้วย SDK ของ OTel
- สัญญาณและข้อตกลงเชิงความหมาย