Skip to content
Closed
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
4 changes: 2 additions & 2 deletions src/airport_extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ namespace duckdb
auto &log_manager = loader.GetDatabaseInstance().GetLogManager();
log_manager.RegisterLogType(make_uniq<AirportLogType>());

QueryFarmSendTelemetry(loader, "bitfilters", AIRPORT_EXTENSION_VERSION);
QueryFarmSendTelemetry(loader, "airport", AIRPORT_EXTENSION_VERSION);
}

void AirportExtension::Load(ExtensionLoader &loader)
Expand All @@ -328,7 +328,7 @@ namespace duckdb

std::string AirportExtension::Version() const
{
return "user-agent=" + airport_user_agent() + ",client=" + AIRPORT_EXTENSION_VERSION;
return StringUtil::Format("user-agent=%s,client=%s", airport_user_agent(), AIRPORT_EXTENSION_VERSION);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current implementation creates multiple temporary strings, using string format yields better performance.

}

} // namespace duckdb
Expand Down