Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc typo fixes and cosmetic cleanup in comments #8

Merged
merged 1 commit into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pg_tracing.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Generate spans for distributed tracing from SQL query
*
* Spans will only be generated for sampled queries. A query is sampled if:
* - It has a tracecontext propagated throught SQLCommenter and it passes the
* - It has a tracecontext propagated through SQLCommenter and it passes the
* caller_sample_rate.
* - It has no SQLCommenter but the query randomly passes the global sample_rate
*
Expand Down
7 changes: 4 additions & 3 deletions src/pg_tracing_query_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@
* pg_tracing query processing functions.
*
* IDENTIFICATION
* contrib/pg_tracing/pg_tracing_explain.c
* src/pg_tracing_explain.c
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"

#include <sys/stat.h>
#include <unistd.h>

#include "nodes/extensible.h"
#include "parser/scanner.h"
#include "pg_tracing.h"
#include "nodes/extensible.h"

/*
* Check if we have a comment that could store SQLComment information at the
Expand All @@ -37,7 +38,7 @@ has_possible_sql_comment(const char *query)
if (query_len < 55 + 13 + 4)
return -1;

/* Check if we have comment at the begining */
/* Check if we have comment at the beginning */
if (query[0] == '/' && query[1] == '*')
return 0;

Expand Down
4 changes: 2 additions & 2 deletions src/pg_tracing_span.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
* pg_tracing span functions.
*
* IDENTIFICATION
* contrib/pg_tracing/pg_tracing_span.c
* src/pg_tracing_span.c
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"

#include "common/pg_prng.h"
#include "nodes/extensible.h"
#include "pg_tracing.h"
#include "common/pg_prng.h"

/*
* Convert a node CmdType to the matching SpanType
Expand Down